#5B334F

Closest named color: Purple Brown (#673A3F). oklch(38.1% 0.07 339.1), rgb(91, 51, 79).

Aa

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

About this color

#5B334F is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.070 and its hue 339°. Its hue sits on the warm side of the wheel. The nearest named color is Purple Brown (#673A3F), ΔE 0.047 away. White text reads best on it, at 10.33:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.070)
Temperaturewarm
Nearest namePurple Brown (#673A3F)
Black text2.03:1
White text10.33:1

Values

HEX#5B334F
RGBrgb(91, 51, 79)
HSLhsl(318, 28%, 28%)
OKLCHoklch(38.1% 0.07 339.1)

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 #5B334F 10.33:1 AAA Lc -97.9 Preferred for body text
Black text on #5B334F 2.03:1 Fails Lc 10.1 Not readable
#5B334F text on white 10.33:1 AAA Lc 93.8 Preferred for body text
#5B334F text on black 2.03:1 Fails Lc -8.7 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

    #F9F4F7

    oklch(97.2% 0.007 340.4)

  2. Step 100

    100

    #F1E6ED

    oklch(93.6% 0.015 338.9)

  3. Step 200

    200

    #E7D2E0

    oklch(88.5% 0.03 337.9)

  4. Step 300

    300

    #D9B4CC

    oklch(81% 0.053 339.4)

  5. Step 400

    400

    #C48CB2

    oklch(70.7% 0.084 339)

  6. Step 500

    500

    #B46F9F

    oklch(63.1% 0.107 339)

  7. Step 600

    600

    #9F568A

    oklch(55.6% 0.117 338.9)

  8. Step 700

    700

    #884675

    oklch(49.2% 0.109 339.1)

  9. Step 800

    800

    #6F3A5F

    oklch(42.8% 0.09 339.6)

  10. Step 900

    900 (this color)

    #5B334F

    oklch(38.1% 0.07 339.1)

  11. Step 950

    950

    #351D2E

    oklch(27% 0.046 338.5)

Export this scale for Tailwind in the Tailwind colors tool

#5B334F 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)#343C500.072
Deuteranopia (no green cones)#3F424E0.064
Tritanopia (no blue cones)#5F343D0.033
Achromatopsia (no color)#4040400.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B334F

    #5B334F

    oklch(38.1% 0.07 339.1)

  • #1A4E35

    #1A4E35

    oklch(38.1% 0.07 159.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B334F

    #5B334F

    oklch(38.1% 0.07 339.1)

  • #4E385F

    #4E385F

    oklch(38.2% 0.07 309.3)

  • #62323B

    #62323B

    oklch(38.2% 0.07 9)

Open the analogous palette in the generator

Split complementary

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

  • #5B334F

    #5B334F

    oklch(38.1% 0.07 339.1)

  • #374A1F

    #374A1F

    oklch(38.2% 0.07 129)

  • #004E4A

    #004E4A

    oklch(38.2% 0.066 188.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B334F

    #5B334F

    oklch(38.1% 0.07 339.1)

  • #4C430E

    #4C430E

    oklch(38.1% 0.071 99.2)

  • #004B5C

    #004B5C

    oklch(38.2% 0.069 219.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B334F

    #5B334F

    oklch(38.1% 0.07 339.1)

  • #5B3B12

    #5B3B12

    oklch(38.2% 0.071 69)

  • #1A4E35

    #1A4E35

    oklch(38.1% 0.07 159.3)

  • #224567

    #224567

    oklch(38.1% 0.071 249.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5B334F 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.