#542B74

Closest named color: Dark Slate Blue (#483D8B). oklch(38% 0.123 307.4), rgb(84, 43, 116).

Aa

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

About this color

#542B74 is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.123 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.058 away. White text reads best on it, at 10.63:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.123)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text1.97:1
White text10.63:1

Values

HEX#542B74
RGBrgb(84, 43, 116)
HSLhsl(274, 46%, 31%)
OKLCHoklch(38% 0.123 307.4)

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 #542B74 10.63:1 AAA Lc -98.2 Preferred for body text
Black text on #542B74 1.97:1 Fails Lc 9.7 Not readable
#542B74 text on white 10.63:1 AAA Lc 94.2 Preferred for body text
#542B74 text on black 1.97:1 Fails Lc -8.3 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 900.

  1. Step 50

    50

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE5F8

    oklch(93.5% 0.027 309.2)

  3. Step 200

    200

    #E2D1F4

    oklch(88.5% 0.051 307.2)

  4. Step 300

    300

    #D1B1F0

    oklch(81% 0.093 307.5)

  5. Step 400

    400

    #B985E8

    oklch(70.6% 0.149 307.2)

  6. Step 500

    500

    #A863E0

    oklch(63.1% 0.188 307.3)

  7. Step 600

    600

    #9445CE

    oklch(55.6% 0.206 307.4)

  8. Step 700

    700

    #7E35B2

    oklch(49.1% 0.191 307.5)

  9. Step 800

    800

    #662D90

    oklch(42.6% 0.158 307.3)

  10. Step 900

    900 (this color)

    #542B74

    oklch(38% 0.123 307.4)

  11. Step 950

    950

    #311A43

    oklch(27.1% 0.077 308)

Export this scale for Tailwind in the Tailwind colors tool

#542B74 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)#0A3D760.105
Deuteranopia (no green cones)#1F3F720.093
Tritanopia (no blue cones)#4F394B0.087
Achromatopsia (no color)#3E3E3E0.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #542B74

    #542B74

    oklch(38% 0.123 307.4)

  • #334B00

    #334B00

    oklch(37.9% 0.098 127.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542B74

    #542B74

    oklch(38% 0.123 307.4)

  • #353782

    #353782

    oklch(38% 0.124 277.6)

  • #692159

    #692159

    oklch(38% 0.124 337.7)

Open the analogous palette in the generator

Split complementary

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

  • #542B74

    #542B74

    oklch(38% 0.123 307.4)

  • #4E4200

    #4E4200

    oklch(38% 0.078 97.4)

  • #00502F

    #00502F

    oklch(38% 0.089 157.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542B74

    #542B74

    oklch(38% 0.123 307.4)

  • #5F3800

    #5F3800

    oklch(38% 0.084 67.5)

  • #004D48

    #004D48

    oklch(37.8% 0.066 187.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542B74

    #542B74

    oklch(38% 0.123 307.4)

  • #752102

    #752102

    oklch(37.9% 0.123 37.6)

  • #334B00

    #334B00

    oklch(37.9% 0.098 127.6)

  • #004B5A

    #004B5A

    oklch(38.1% 0.068 217)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #542B74 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.