#42174C

Closest named color: Deep Violet (#490648). oklch(29.7% 0.102 319.6), rgb(66, 23, 76).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (30%)
Chromamoderately saturated (0.102)
Temperaturein between
Nearest nameDeep Violet (#490648)
Black text1.45:1
White text14.39:1

Values

HEX#42174C
RGBrgb(66, 23, 76)
HSLhsl(289, 54%, 19%)
OKLCHoklch(29.7% 0.102 319.6)

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 #42174C 14.39:1 AAA Lc -103.7 Preferred for body text
Black text on #42174C 1.45:1 Fails Lc 0.0 Not readable
#42174C text on white 14.39:1 AAA Lc 100.7 Preferred for body text
#42174C text on black 1.45: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

    #FAF2FC

    oklch(97% 0.016 319.4)

  2. Step 100

    100

    #F5E3F9

    oklch(93.7% 0.035 320.1)

  3. Step 200

    200

    #EDCCF5

    oklch(88.6% 0.066 319.6)

  4. Step 300

    300

    #E3A7F1

    oklch(80.9% 0.12 319.9)

  5. Step 400

    400

    #D372EA

    oklch(70.6% 0.193 319.7)

  6. Step 500

    500

    #C642E4

    oklch(63.1% 0.247 319.5)

  7. Step 600

    600

    #B100D1

    oklch(55.5% 0.267 319.5)

  8. Step 700

    700

    #9600B1

    oklch(49.1% 0.236 319.7)

  9. Step 800

    800

    #7C0092

    oklch(42.7% 0.205 319.9)

  10. Step 900

    900

    #641475

    oklch(37.7% 0.161 319.7)

  11. Step 950

    950 (this color)

    #42174C

    oklch(29.7% 0.102 319.6)

Export this scale for Tailwind in the Tailwind colors tool

#42174C 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)#08274E0.100
Deuteranopia (no green cones)#1B2B4B0.085
Tritanopia (no blue cones)#42202F0.063
Achromatopsia (no color)#2A2A2A0.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #42174C

    #42174C

    oklch(29.7% 0.102 319.6)

  • #0C3700

    #0C3700

    oklch(29.6% 0.094 139.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42174C

    #42174C

    oklch(29.7% 0.102 319.6)

  • #2E205B

    #2E205B

    oklch(29.7% 0.101 289.7)

  • #4F1034

    #4F1034

    oklch(29.7% 0.101 350)

Open the analogous palette in the generator

Split complementary

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

  • #42174C

    #42174C

    oklch(29.7% 0.102 319.6)

  • #2F2F00

    #2F2F00

    oklch(29.5% 0.064 109.8)

  • #003628

    #003628

    oklch(29.6% 0.059 169.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42174C

    #42174C

    oklch(29.7% 0.102 319.6)

  • #3D2900

    #3D2900

    oklch(29.7% 0.062 80.2)

  • #003437

    #003437

    oklch(29.6% 0.05 201)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42174C

    #42174C

    oklch(29.7% 0.102 319.6)

  • #4B1E00

    #4B1E00

    oklch(29.7% 0.079 49.4)

  • #0C3700

    #0C3700

    oklch(29.6% 0.094 139.6)

  • #003245

    #003245

    oklch(29.7% 0.059 230.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #42174C 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.