#5F1987#5F1987

#5F1987 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.171 H 309.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5F1987
RGBrgb(95, 25, 135)
HSLhsl(278, 69%, 31%)
HSVhsv(278, 81%, 53%)
CMYKcmyk(29.6%, 81.5%, 0%, 47.1%)
CIE-LABlab(26.38, 48.86, -46.66)
CIE-LCHlch(26.38, 67.56, 316.32°)
OKLaboklab(38.75% 0.1081 -0.1325)
OKLCHoklch(38.75% 0.171 309.2)
XYZxyz(9.4392, 4.8776, 23.3612)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1987 #418719
analogous
#281987 #5F1987 #871978
triadic
#5F1987 #875F19 #19875F
tetradic
#5F1987 #872819 #418719 #197887
square
#5F1987 #872819 #418719 #197887
split-complementary
#5F1987 #788719 #198728
monochromatic
#160620 #3B0F53 #5F1987 #8323BB #A33FDB

Accessibility & contrast

On white

10.63
#5F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1987
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1987#FFFFFF#000000##FFFFFF
##5F19871.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1987;
/* rgb */ color: rgb(95, 25, 135);
/* oklch */ color: oklch(38.8% 0.171 309.2);
Tailwind
colors: {
  custom: {
    50: '#915fab',
    500: '#5f1987',
    950: '#000000',
  },
}
SCSS
$custom: #5f1987;
$custom-light: #915fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1987",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 278.182,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38754,
    "c": 0.17098,
    "h": 309.2
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#5F1987
secondary
#6DBA41
accent
#EC3C7C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1987

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

Preview Lab → · Contrast checker → · Palette generator →

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