#5F1589#5F1589

#5F1589 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.177 H 308.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5F1589
RGBrgb(95, 21, 137)
HSLhsl(278, 73%, 31%)
HSVhsv(278, 85%, 54%)
CMYKcmyk(30.7%, 84.7%, 0%, 46.3%)
CIE-LABlab(26.09, 50.65, -48.39)
CIE-LCHlch(26.09, 70.05, 316.31°)
OKLaboklab(38.6% 0.1106 -0.1376)
OKLCHoklch(38.6% 0.177 308.8)
XYZxyz(9.5019, 4.7755, 24.0833)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1589 #3F8915
analogous
#251589 #5F1589 #891579
triadic
#5F1589 #895F15 #15895F
tetradic
#5F1589 #892515 #3F8915 #157989
square
#5F1589 #892515 #3F8915 #157989
split-complementary
#5F1589 #798915 #158925
monochromatic
#15051F #3A0D54 #5F1589 #841DBE #A338E0

Accessibility & contrast

On white

10.74
#5F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1589
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1589#FFFFFF#000000##FFFFFF
##5F15891.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#583451
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1589;
/* rgb */ color: rgb(95, 21, 137);
/* oklch */ color: oklch(38.6% 0.177 308.8);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5f1589',
    950: '#000000',
  },
}
SCSS
$custom: #5f1589;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1589",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 278.276,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38598,
    "c": 0.17654,
    "h": 308.8
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#5F1589
secondary
#6BBD3D
accent
#F0387A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1589

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

Preview Lab → · Contrast checker → · Palette generator →

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