#51498C

Closest named color: Twilight (#4E518B). oklch(44.6% 0.107 286.7), rgb(81, 73, 140).

Aa

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

About this color

#51498C is a dark, moderately saturated purple. In OKLCH its lightness is 45%, its chroma 0.107 and its hue 287°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.022 away. White text reads best on it, at 7.83:1.

Hue familyPurples
Lightnessdark (45%)
Chromamoderately saturated (0.107)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.68:1
White text7.83:1

Values

HEX#51498C
RGBrgb(81, 73, 140)
HSLhsl(247, 31%, 42%)
OKLCHoklch(44.6% 0.107 286.7)

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 #51498C 7.83:1 AAA Lc -91.8 Preferred for body text
Black text on #51498C 2.68:1 Fails Lc 17.0 Dividers and decoration only
#51498C text on white 7.83:1 AAA Lc 87.0 Fine for body text
#51498C text on black 2.68:1 Fails Lc -15.1 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

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E8E8F6

    oklch(93.5% 0.019 286)

  3. Step 200

    200

    #D7D6F0

    oklch(88.5% 0.036 287.4)

  4. Step 300

    300

    #BDBBE8

    oklch(80.9% 0.063 286.9)

  5. Step 400

    400

    #9C97DC

    oklch(70.7% 0.1 286.9)

  6. Step 500

    500

    #857CD3

    oklch(63.2% 0.128 286.9)

  7. Step 600

    600

    #6F63C0

    oklch(55.5% 0.14 286.8)

  8. Step 700

    700

    #5D52A5

    oklch(49.1% 0.129 286.7)

  9. Step 800

    800 (this color)

    #51498C

    oklch(44.6% 0.107 286.7)

  10. Step 900

    900

    #3F396B

    oklch(37.6% 0.084 287.2)

  11. Step 950

    950

    #25223F

    oklch(27.1% 0.053 287)

Export this scale for Tailwind in the Tailwind colors tool

#51498C 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)#2F548E0.051
Deuteranopia (no green cones)#2E508A0.049
Tritanopia (no blue cones)#4057640.091
Achromatopsia (no color)#5252520.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #51498C

    #51498C

    oklch(44.6% 0.107 286.7)

  • #5B5700

    #5B5700

    oklch(44.6% 0.095 106.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #51498C

    #51498C

    oklch(44.6% 0.107 286.7)

  • #29548E

    #29548E

    oklch(44.6% 0.107 256.6)

  • #6B3F7B

    #6B3F7B

    oklch(44.5% 0.107 316.5)

Open the analogous palette in the generator

Split complementary

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

  • #51498C

    #51498C

    oklch(44.6% 0.107 286.7)

  • #714C00

    #714C00

    oklch(44.6% 0.093 76.7)

  • #366120

    #366120

    oklch(44.6% 0.106 136.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #51498C

    #51498C

    oklch(44.6% 0.107 286.7)

  • #833E17

    #833E17

    oklch(44.7% 0.108 46.7)

  • #006449

    #006449

    oklch(44.6% 0.092 166.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #51498C

    #51498C

    oklch(44.6% 0.107 286.7)

  • #85373F

    #85373F

    oklch(44.6% 0.107 16.3)

  • #5B5700

    #5B5700

    oklch(44.6% 0.095 106.6)

  • #006162

    #006162

    oklch(44.6% 0.076 196)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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