#4812CD

Closest named color: Violet Blue (#510AC9). oklch(42.7% 0.245 281.5), rgb(72, 18, 205).

Aa

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

About this color

#4812CD is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.245 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Violet Blue (#510AC9), ΔE 0.019 away. White text reads best on it, at 9.35:1.

Hue familyPurples
Lightnessdark (43%)
Chromavivid (0.245)
Temperaturecool
Nearest nameViolet Blue (#510AC9)
Black text2.24:1
White text9.35:1

Values

HEX#4812CD
RGBrgb(72, 18, 205)
HSLhsl(257, 84%, 44%)
OKLCHoklch(42.7% 0.245 281.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 #4812CD 9.35:1 AAA Lc -94.2 Preferred for body text
Black text on #4812CD 2.24:1 Fails Lc 14.3 Not readable
#4812CD text on white 9.35:1 AAA Lc 89.7 Fine for body text
#4812CD text on black 2.24:1 Fails Lc -12.6 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 800.

  1. Step 50

    50

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E6E8FF

    oklch(93.6% 0.031 281.8)

  3. Step 200

    200

    #D2D5FF

    oklch(88.4% 0.058 281.9)

  4. Step 300

    300

    #B6B9FF

    oklch(80.9% 0.099 282.1)

  5. Step 400

    400

    #9292FF

    oklch(70.8% 0.157 281.6)

  6. Step 500

    500

    #7A71FF

    oklch(63.1% 0.204 281.7)

  7. Step 600

    600

    #664AFF

    oklch(55.6% 0.252 281.4)

  8. Step 700

    700

    #5900FE

    oklch(49.1% 0.294 281.3)

  9. Step 800

    800 (this color)

    #4812CD

    oklch(42.7% 0.245 281.5)

  10. Step 900

    900

    #3A20A1

    oklch(37.7% 0.19 281.4)

  11. Step 950

    950

    #21165E

    oklch(27% 0.121 281.6)

Export this scale for Tailwind in the Tailwind colors tool

#4812CD 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)#004CD20.096
Deuteranopia (no green cones)#0040CA0.081
Tritanopia (no blue cones)#0055790.192
Achromatopsia (no color)#4747470.246

Harmonies

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

Complementary

The opposite hue (180°).

  • #4812CD

    #4812CD

    oklch(42.7% 0.245 281.5)

  • #595000

    #595000

    oklch(42.7% 0.089 102)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4812CD

    #4812CD

    oklch(42.7% 0.245 281.5)

  • #005091

    #005091

    oklch(42.8% 0.126 251.5)

  • #7400A1

    #7400A1

    oklch(42.7% 0.214 311.5)

Open the analogous palette in the generator

Split complementary

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

  • #4812CD

    #4812CD

    oklch(42.7% 0.245 281.5)

  • #6D4500

    #6D4500

    oklch(42.6% 0.091 72)

  • #365B00

    #365B00

    oklch(42.7% 0.117 131.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4812CD

    #4812CD

    oklch(42.7% 0.245 281.5)

  • #862E00

    #862E00

    oklch(42.6% 0.13 41.4)

  • #005E3E

    #005E3E

    oklch(42.6% 0.094 161.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4812CD

    #4812CD

    oklch(42.7% 0.245 281.5)

  • #950036

    #950036

    oklch(42.7% 0.171 11.6)

  • #595000

    #595000

    oklch(42.7% 0.089 102)

  • #005B59

    #005B59

    oklch(42.6% 0.073 192.2)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #4812CD.

Similar named colors

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

Use #4812CD 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.