#5F1787#5F1787

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

Color values

HEX#5F1787
RGBrgb(95, 23, 135)
HSLhsl(279, 71%, 31%)
HSVhsv(279, 83%, 53%)
CMYKcmyk(29.6%, 83%, 0%, 47.1%)
CIE-LABlab(26.14, 49.56, -47.05)
CIE-LCHlch(26.14, 68.33, 316.49°)
OKLaboklab(38.59% 0.1097 -0.1336)
OKLCHoklch(38.59% 0.173 309.4)
XYZxyz(9.3980, 4.7951, 23.3474)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1787 #3F8717
analogous
#271787 #5F1787 #871777
triadic
#5F1787 #875F17 #17875F
tetradic
#5F1787 #872717 #3F8717 #177787
square
#5F1787 #872717 #3F8717 #177787
split-complementary
#5F1787 #778717 #178727
monochromatic
#15051E #3A0E53 #5F1787 #8420BB #A33BDE

Accessibility & contrast

On white

10.72
#5F1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1787
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1787#FFFFFF#000000##FFFFFF
##5F17871.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#593450
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1787;
/* rgb */ color: rgb(95, 23, 135);
/* oklch */ color: oklch(38.6% 0.173 309.4);
Tailwind
colors: {
  custom: {
    50: '#915eab',
    500: '#5f1787',
    950: '#000000',
  },
}
SCSS
$custom: #5f1787;
$custom-light: #915eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1787",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 278.571,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38586,
    "c": 0.17287,
    "h": 309.4
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#5F1787
secondary
#6BBB3F
accent
#EE3A7A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1787

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

Preview Lab → · Contrast checker → · Palette generator →

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