#5F209B#5F209B

#5F209B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.184 H 301.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F209B
RGBrgb(95, 32, 155)
HSLhsl(271, 66%, 37%)
HSVhsv(271, 79%, 61%)
CMYKcmyk(38.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(28.99, 50.87, -54.77)
CIE-LCHlch(28.99, 74.75, 312.88°)
OKLaboklab(41.1% 0.0969 -0.1564)
OKLCHoklch(41.1% 0.184 301.8)
XYZxyz(11.1508, 5.8324, 31.5423)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F209B #5C9B20
analogous
#22209B #5F209B #9B209A
triadic
#5F209B #9B5F20 #209B5F
tetradic
#5F209B #9B2220 #5C9B20 #209A9B
square
#5F209B #9B2220 #5C9B20 #209A9B
split-complementary
#5F209B #9A9B20 #209B22
monochromatic
#210B36 #401668 #5F209B #7E2ACE #9C59DD

Accessibility & contrast

On white

9.69
#5F209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F209B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F209B#FFFFFF#000000##FFFFFF
##5F209B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f209b;
/* rgb */ color: rgb(95, 32, 155);
/* oklch */ color: oklch(41.1% 0.184 301.8);
Tailwind
colors: {
  custom: {
    50: '#9263b9',
    500: '#5f209b',
    950: '#000000',
  },
}
SCSS
$custom: #5f209b;
$custom-light: #9263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f209b",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 270.732,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41096,
    "c": 0.18398,
    "h": 301.8
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#5F209B
secondary
#8AC156
accent
#E93F92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F209B

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

Preview Lab → · Contrast checker → · Palette generator →

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