     func testRGBA() {
         let color = RGBA(255, 0, 0, 1)
         
-        XCTAssertEqual(color, Color.red)
+        XCTAssertEqual(color, red)
     }
     
     func testARGB() {
         let color = ARGB(1, 0, 255, 0)
         
-        XCTAssertEqual(color, Color.green)
+        XCTAssertEqual(color, green)
     }
     
     func testRGB() {
         let color = RGB(0, 0, 255)
         
-        XCTAssertEqual(color, Color.blue)
+        XCTAssertEqual(color, blue)
     }
     
     func testRedComponent() {

@testable import BFKit

class UIColorExtensionTests: XCTestCase {
    override func setUp() {
        super.setUp()
    }

    func testInitHexAlpha() {
        let color = Color(hex: 0xFFFF00)
        
        XCTAssertEqual(color, yellow)
    }
    
    func testInitHexAlphaFirst() {
        let color = Color(hex: "0FF")
        let color2 = Color(hex: "00FF", alphaFirst: true)
        let color3 = Color(hex: "0FF0")
        let color4 = Color(hex: "00FFFF")
        let color5 = Color(hex: "#00FFFFFF", alphaFirst: false)
        let color6 = Color(hex: "#FF00FFFF", alphaFirst: true)
        
        XCTAssertEqual(color, cyan)
        XCTAssertEqual(color2, cyan.withAlphaComponent(0))
        XCTAssertEqual(color3, cyan.withAlphaComponent(0))
        XCTAssertEqual(color4, cyan)
        XCTAssertEqual(color5, cyan)
        XCTAssertEqual(color6, cyan)
    }
    
    func testContrasting() {
