#42174F

Closest named color: Deep Violet (#490648). oklch(29.9% 0.105 317.5), rgb(66, 23, 79).

Aa

White text reads best on this color (14.31:1).

About this color

#42174F is a dark, moderately saturated purple. In OKLCH its lightness is 30%, its chroma 0.105 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.031 away. White text reads best on it, at 14.31:1.

Hue familyPurples
Lightnessdark (30%)
Chromamoderately saturated (0.105)
Temperaturein between
Nearest nameDeep Violet (#490648)
Black text1.46:1
White text14.31:1

Values

HEX#42174F
RGBrgb(66, 23, 79)
HSLhsl(286, 55%, 20%)
OKLCHoklch(29.9% 0.105 317.5)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #42174F 14.31:1 AAA Lc -103.6 Preferred for body text
Black text on #42174F 1.46:1 Fails Lc 0.0 Not readable
#42174F text on white 14.31:1 AAA Lc 100.6 Preferred for body text
#42174F text on black 1.46:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #FAF2FD

    oklch(97% 0.017 316.9)

  2. Step 100

    100

    #F4E3FA

    oklch(93.6% 0.036 317.3)

  3. Step 200

    200

    #ECCBF8

    oklch(88.4% 0.07 317)

  4. Step 300

    300

    #E2A7F5

    oklch(81% 0.124 317.7)

  5. Step 400

    400

    #D272F0

    oklch(70.8% 0.198 317.6)

  6. Step 500

    500

    #C440EB

    oklch(63.1% 0.254 317.2)

  7. Step 600

    600

    #AF00D7

    oklch(55.7% 0.271 317.4)

  8. Step 700

    700

    #9400B6

    oklch(49.2% 0.239 317.5)

  9. Step 800

    800

    #7A0096

    oklch(42.7% 0.207 317.7)

  10. Step 900

    900

    #631279

    oklch(37.7% 0.166 317.5)

  11. Step 950

    950 (this color)

    #42174F

    oklch(29.9% 0.105 317.5)

Export this scale for Tailwind in the Tailwind colors tool

#42174F with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0427510.102
Deuteranopia (no green cones)#192C4E0.088
Tritanopia (no blue cones)#4221300.068
Achromatopsia (no color)#2A2A2A0.106

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #42174F

    #42174F

    oklch(29.9% 0.105 317.5)

  • #133700

    #133700

    oklch(29.8% 0.091 137.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42174F

    #42174F

    oklch(29.9% 0.105 317.5)

  • #2D205E

    #2D205E

    oklch(29.9% 0.105 287.9)

  • #500F37

    #500F37

    oklch(29.9% 0.105 347.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #42174F

    #42174F

    oklch(29.9% 0.105 317.5)

  • #312F00

    #312F00

    oklch(29.8% 0.064 107.2)

  • #003727

    #003727

    oklch(29.9% 0.061 167.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42174F

    #42174F

    oklch(29.9% 0.105 317.5)

  • #3F2900

    #3F2900

    oklch(30% 0.063 77.5)

  • #003536

    #003536

    oklch(29.8% 0.051 196.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42174F

    #42174F

    oklch(29.9% 0.105 317.5)

  • #4D1D00

    #4D1D00

    oklch(29.9% 0.082 47.2)

  • #133700

    #133700

    oklch(29.8% 0.091 137.3)

  • #003344

    #003344

    oklch(29.9% 0.058 227)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #42174F, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #42174F in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.