#5F205B#5F205B

#5F205B is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.4% C 0.120 H 330.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5F205B
RGBrgb(95, 32, 91)
HSLhsl(304, 50%, 25%)
HSVhsv(304, 66%, 37%)
CMYKcmyk(0%, 66.3%, 4.2%, 62.7%)
CIE-LABlab(24.39, 36.71, -21.59)
CIE-LCHlch(24.39, 42.59, 329.54°)
OKLaboklab(36.37% 0.104 -0.0593)
OKLCHoklch(36.37% 0.12 330.3)
XYZxyz(7.1241, 4.2218, 10.3352)
Luminance0.0422 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F205B #205F24
analogous
#44205F #5F205B #5F203B
triadic
#5F205B #5B5F20 #205B5F
tetradic
#5F205B #5F4420 #205F24 #203B5F
square
#5F205B #5F4420 #205F24 #203B5F
split-complementary
#5F205B #3B5F20 #205F44
monochromatic
#170816 #31112F #5F205B #8D2F87 #BB3FB3

Accessibility & contrast

On white

11.39
#5F205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F205B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F205B#FFFFFF#000000##FFFFFF
##5F205B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B345D
Deuteranopia (green-blind)
#313D59
Tritanopia (blue-blind)
#63273A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f205b;
/* rgb */ color: rgb(95, 32, 91);
/* oklch */ color: oklch(36.4% 0.120 330.3);
Tailwind
colors: {
  custom: {
    50: '#8f6089',
    500: '#5f205b',
    950: '#000000',
  },
}
SCSS
$custom: #5f205b;
$custom-light: #8f6089;
$custom-dark: #000000;
JSON
{
  "hex": "#5f205b",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 303.81,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36371,
    "c": 0.11976,
    "h": 330.3
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#5F205B
secondary
#47934C
accent
#D9574F
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5F205B

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

Preview Lab → · Contrast checker → · Palette generator →

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