#514C88

Closest named color: Twilight (#4E518B). oklch(45% 0.096 285.6), rgb(81, 76, 136).

Aa

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

About this color

#514C88 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 45%, its chroma 0.096 and its hue 286°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.014 away. White text reads best on it, at 7.66:1.

Hue familyPurples
Lightnessmedium-dark (45%)
Chromamoderately saturated (0.096)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.73:1
White text7.66:1

Values

HEX#514C88
RGBrgb(81, 76, 136)
HSLhsl(245, 28%, 42%)
OKLCHoklch(45% 0.096 285.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 #514C88 7.66:1 AAA Lc -91.3 Preferred for body text
Black text on #514C88 2.73:1 Fails Lc 17.5 Dividers and decoration only
#514C88 text on white 7.66:1 AAA Lc 86.5 Fine for body text
#514C88 text on black 2.73:1 Fails Lc -15.5 Dividers and decoration only

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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E8E9F5

    oklch(93.7% 0.016 282.3)

  3. Step 200

    200

    #D7D7EE

    oklch(88.6% 0.031 285.7)

  4. Step 300

    300

    #BDBCE4

    oklch(80.9% 0.056 286.2)

  5. Step 400

    400

    #9B99D7

    oklch(70.8% 0.09 285.3)

  6. Step 500

    500

    #837ECC

    oklch(63% 0.116 285.5)

  7. Step 600

    600

    #6E66B9

    oklch(55.6% 0.126 285.9)

  8. Step 700

    700

    #5C559F

    oklch(49.2% 0.116 285.6)

  9. Step 800

    800 (this color)

    #514C88

    oklch(45% 0.096 285.6)

  10. Step 900

    900

    #3E3B67

    oklch(37.7% 0.074 285.4)

  11. Step 950

    950

    #24233D

    oklch(27.1% 0.048 284.5)

Export this scale for Tailwind in the Tailwind colors tool

#514C88 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)#37558A0.041
Deuteranopia (no green cones)#3651870.039
Tritanopia (no blue cones)#4258630.083
Achromatopsia (no color)#5353530.097

Harmonies

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

Complementary

The opposite hue (180°).

  • #514C88

    #514C88

    oklch(45% 0.096 285.6)

  • #5D5800

    #5D5800

    oklch(45.1% 0.096 105.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #514C88

    #514C88

    oklch(45% 0.096 285.6)

  • #2E568A

    #2E568A

    oklch(45% 0.097 255.8)

  • #6A4379

    #6A4379

    oklch(45% 0.096 316.1)

Open the analogous palette in the generator

Split complementary

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

  • #514C88

    #514C88

    oklch(45% 0.096 285.6)

  • #734C00

    #734C00

    oklch(44.9% 0.095 75.2)

  • #3C6127

    #3C6127

    oklch(45% 0.096 135.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #514C88

    #514C88

    oklch(45% 0.096 285.6)

  • #804223

    #804223

    oklch(45.1% 0.096 45.7)

  • #006549

    #006549

    oklch(44.9% 0.093 166)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #514C88

    #514C88

    oklch(45% 0.096 285.6)

  • #823C43

    #823C43

    oklch(45% 0.097 15.6)

  • #5D5800

    #5D5800

    oklch(45.1% 0.096 105.8)

  • #006263

    #006263

    oklch(45% 0.077 196)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #514C88 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.