#5F206E#5F206E

#5F206E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.138 H 319.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5F206E
RGBrgb(95, 32, 110)
HSLhsl(288, 55%, 28%)
HSVhsv(288, 71%, 43%)
CMYKcmyk(13.6%, 70.9%, 0%, 56.9%)
CIE-LABlab(25.54, 40.53, -32.16)
CIE-LCHlch(25.54, 51.73, 321.57°)
OKLaboklab(37.57% 0.1047 -0.09)
OKLCHoklch(37.57% 0.138 319.3)
XYZxyz(8.0499, 4.5921, 15.2112)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F206E #2F6E20
analogous
#38206E #5F206E #6E2056
triadic
#5F206E #6E5F20 #206E5F
tetradic
#5F206E #6E3820 #2F6E20 #20566E
square
#5F206E #6E3820 #2F6E20 #20566E
split-complementary
#5F206E #566E20 #206E38
monochromatic
#140718 #36123F #5F206E #882E9D #AE41C8

Accessibility & contrast

On white

10.95
#5F206E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F206E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F206E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F206E#FFFFFF#000000##FFFFFF
##5F206E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023870
Deuteranopia (green-blind)
#253F6C
Tritanopia (blue-blind)
#5F2E44
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f206e;
/* rgb */ color: rgb(95, 32, 110);
/* oklch */ color: oklch(37.6% 0.138 319.3);
Tailwind
colors: {
  custom: {
    50: '#8f6198',
    500: '#5f206e',
    950: '#000000',
  },
}
SCSS
$custom: #5f206e;
$custom-light: #8f6198;
$custom-dark: #000000;
JSON
{
  "hex": "#5f206e",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 110
  },
  "hsl": {
    "h": 288.462,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37572,
    "c": 0.13804,
    "h": 319.3
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#5F206E
secondary
#59A248
accent
#DE4A66
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F206E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F206E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva