#5F206D#5F206D

#5F206D is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.137 H 319.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5F206D
RGBrgb(95, 32, 109)
HSLhsl(289, 55%, 28%)
HSVhsv(289, 71%, 43%)
CMYKcmyk(12.8%, 70.6%, 0%, 57.3%)
CIE-LABlab(25.47, 40.32, -31.62)
CIE-LCHlch(25.47, 51.24, 321.90°)
OKLaboklab(37.5% 0.1047 -0.0884)
OKLCHoklch(37.5% 0.137 319.8)
XYZxyz(7.9958, 4.5704, 14.9260)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F206D #2E6D20
analogous
#38206D #5F206D #6D2054
triadic
#5F206D #6D5F20 #206D5F
tetradic
#5F206D #6D3820 #2E6D20 #20546D
square
#5F206D #6D3820 #2E6D20 #20546D
split-complementary
#5F206D #546D20 #206D38
monochromatic
#150718 #36123E #5F206D #882E9C #AF40C7

Accessibility & contrast

On white

10.97
#5F206D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F206D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F206D
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F206D#FFFFFF#000000##FFFFFF
##5F206D1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04386F
Deuteranopia (green-blind)
#263F6B
Tritanopia (blue-blind)
#5F2E44
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f206d;
/* rgb */ color: rgb(95, 32, 109);
/* oklch */ color: oklch(37.5% 0.137 319.8);
Tailwind
colors: {
  custom: {
    50: '#8f6197',
    500: '#5f206d',
    950: '#000000',
  },
}
SCSS
$custom: #5f206d;
$custom-light: #8f6197;
$custom-dark: #000000;
JSON
{
  "hex": "#5f206d",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 109
  },
  "hsl": {
    "h": 289.091,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37504,
    "c": 0.13705,
    "h": 319.8
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#5F206D
secondary
#58A148
accent
#DE4A65
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F206D

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

Preview Lab → · Contrast checker → · Palette generator →

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