#5F1887#5F1887

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

Color values

HEX#5F1887
RGBrgb(95, 24, 135)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(29.6%, 82.2%, 0%, 47.1%)
CIE-LABlab(26.26, 49.21, -46.86)
CIE-LCHlch(26.26, 67.95, 316.41°)
OKLaboklab(38.67% 0.1089 -0.1331)
OKLCHoklch(38.67% 0.172 309.3)
XYZxyz(9.4182, 4.8356, 23.3542)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1887 #408718
analogous
#271887 #5F1887 #871877
triadic
#5F1887 #875F18 #18875F
tetradic
#5F1887 #872718 #408718 #187787
square
#5F1887 #872718 #408718 #187787
split-complementary
#5F1887 #778718 #188727
monochromatic
#16061F #3A0F53 #5F1887 #8421BB #A33DDC

Accessibility & contrast

On white

10.68
#5F1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1887
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1887#FFFFFF#000000##FFFFFF
##5F18871.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1887;
/* rgb */ color: rgb(95, 24, 135);
/* oklch */ color: oklch(38.7% 0.172 309.3);
Tailwind
colors: {
  custom: {
    50: '#915fab',
    500: '#5f1887',
    950: '#000000',
  },
}
SCSS
$custom: #5f1887;
$custom-light: #915fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1887",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 278.378,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38669,
    "c": 0.17195,
    "h": 309.3
  },
  "luminance": 0.04835
}

Semantic roles & 50–950 ramp

primary
#5F1887
secondary
#6CBB40
accent
#ED3B7B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1887

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

Preview Lab → · Contrast checker → · Palette generator →

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