#5F1687#5F1687

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

Color values

HEX#5F1687
RGBrgb(95, 22, 135)
HSLhsl(279, 72%, 31%)
HSVhsv(279, 84%, 53%)
CMYKcmyk(29.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(26.03, 49.89, -47.23)
CIE-LCHlch(26.03, 68.70, 316.57°)
OKLaboklab(38.51% 0.1104 -0.1342)
OKLCHoklch(38.51% 0.174 309.5)
XYZxyz(9.3785, 4.7562, 23.3410)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1687 #3E8716
analogous
#261687 #5F1687 #871676
triadic
#5F1687 #875F16 #16875F
tetradic
#5F1687 #872616 #3E8716 #167687
square
#5F1687 #872616 #3E8716 #167687
split-complementary
#5F1687 #768716 #168726
monochromatic
#15051E #3A0D52 #5F1687 #841FBC #A439DF

Accessibility & contrast

On white

10.76
#5F1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1687
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1687#FFFFFF#000000##FFFFFF
##5F16871.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1687;
/* rgb */ color: rgb(95, 22, 135);
/* oklch */ color: oklch(38.5% 0.174 309.5);
Tailwind
colors: {
  custom: {
    50: '#915eab',
    500: '#5f1687',
    950: '#000000',
  },
}
SCSS
$custom: #5f1687;
$custom-light: #915eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1687",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 278.761,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38506,
    "c": 0.17379,
    "h": 309.5
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#5F1687
secondary
#6ABB3E
accent
#EF3979
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1687

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

Preview Lab → · Contrast checker → · Palette generator →

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