#5F1788#5F1788

#5F1788 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.174 H 309.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5F1788
RGBrgb(95, 23, 136)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 53%)
CMYKcmyk(30.1%, 83.1%, 0%, 46.7%)
CIE-LABlab(26.23, 49.78, -47.54)
CIE-LCHlch(26.23, 68.83, 316.32°)
OKLaboklab(38.67% 0.1094 -0.1351)
OKLCHoklch(38.67% 0.174 309)
XYZxyz(9.4687, 4.8234, 23.7200)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1788 #408817
analogous
#261788 #5F1788 #881778
triadic
#5F1788 #885F17 #17885F
tetradic
#5F1788 #882617 #408817 #177888
square
#5F1788 #882617 #408817 #177888
split-complementary
#5F1788 #788817 #178826
monochromatic
#16051F #3A0E54 #5F1788 #8420BC #A33BDE

Accessibility & contrast

On white

10.69
#5F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1788
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1788#FFFFFF#000000##FFFFFF
##5F17881.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#593551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1788;
/* rgb */ color: rgb(95, 23, 136);
/* oklch */ color: oklch(38.7% 0.174 309.0);
Tailwind
colors: {
  custom: {
    50: '#915eab',
    500: '#5f1788',
    950: '#000000',
  },
}
SCSS
$custom: #5f1788;
$custom-light: #915eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1788",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 278.23,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3867,
    "c": 0.17383,
    "h": 309
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#5F1788
secondary
#6CBC3F
accent
#EE3A7B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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