#5F206F#5F206F

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

Color values

HEX#5F206F
RGBrgb(95, 32, 111)
HSLhsl(288, 55%, 28%)
HSVhsv(288, 71%, 44%)
CMYKcmyk(14.4%, 71.2%, 0%, 56.5%)
CIE-LABlab(25.61, 40.74, -32.69)
CIE-LCHlch(25.61, 52.24, 321.25°)
OKLaboklab(37.64% 0.1046 -0.0916)
OKLCHoklch(37.64% 0.139 318.8)
XYZxyz(8.1047, 4.6140, 15.4995)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F206F #306F20
analogous
#37206F #5F206F #6F2057
triadic
#5F206F #6F5F20 #206F5F
tetradic
#5F206F #6F3720 #306F20 #20576F
square
#5F206F #6F3720 #306F20 #20576F
split-complementary
#5F206F #576F20 #206F37
monochromatic
#140718 #36123F #5F206F #882E9F #AD41C8

Accessibility & contrast

On white

10.92
#5F206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F206F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F206F#FFFFFF#000000##FFFFFF
##5F206F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003971
Deuteranopia (green-blind)
#253F6D
Tritanopia (blue-blind)
#5F2F45
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f206f;
/* rgb */ color: rgb(95, 32, 111);
/* oklch */ color: oklch(37.6% 0.139 318.8);
Tailwind
colors: {
  custom: {
    50: '#8f6199',
    500: '#5f206f',
    950: '#000000',
  },
}
SCSS
$custom: #5f206f;
$custom-light: #8f6199;
$custom-dark: #000000;
JSON
{
  "hex": "#5f206f",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 287.848,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37641,
    "c": 0.13905,
    "h": 318.8
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#5F206F
secondary
#5AA348
accent
#DF4967
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F206F

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

Preview Lab → · Contrast checker → · Palette generator →

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