#5F209A#5F209A

#5F209A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.183 H 302.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5F209A
RGBrgb(95, 32, 154)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 79%, 60%)
CMYKcmyk(38.3%, 79.2%, 0%, 39.6%)
CIE-LABlab(28.90, 50.62, -54.30)
CIE-LCHlch(28.90, 74.24, 312.99°)
OKLaboklab(41.01% 0.0972 -0.155)
OKLCHoklch(41.01% 0.183 302.1)
XYZxyz(11.0672, 5.7990, 31.1018)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F209A #5B9A20
analogous
#22209A #5F209A #9A2098
triadic
#5F209A #9A5F20 #209A5F
tetradic
#5F209A #9A2220 #5B9A20 #20989A
square
#5F209A #9A2220 #5B9A20 #20989A
split-complementary
#5F209A #989A20 #209A22
monochromatic
#200B35 #401567 #5F209A #7E2BCD #9C58DC

Accessibility & contrast

On white

9.72
#5F209A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F209A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F209A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F209A#FFFFFF#000000##FFFFFF
##5F209A1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f209a;
/* rgb */ color: rgb(95, 32, 154);
/* oklch */ color: oklch(41.0% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#9263b9',
    500: '#5f209a',
    950: '#000000',
  },
}
SCSS
$custom: #5f209a;
$custom-light: #9263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f209a",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 154
  },
  "hsl": {
    "h": 270.984,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41009,
    "c": 0.18295,
    "h": 302.1
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#5F209A
secondary
#89C056
accent
#E93F91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F209A

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

Preview Lab → · Contrast checker → · Palette generator →

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