#5F1688#5F1688

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

Color values

HEX#5F1688
RGBrgb(95, 22, 136)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(30.1%, 83.8%, 0%, 46.7%)
CIE-LABlab(26.11, 50.11, -47.72)
CIE-LCHlch(26.11, 69.20, 316.40°)
OKLaboklab(38.59% 0.1102 -0.1356)
OKLCHoklch(38.59% 0.175 309.1)
XYZxyz(9.4492, 4.7845, 23.7135)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1688 #3F8816
analogous
#261688 #5F1688 #881678
triadic
#5F1688 #885F16 #16885F
tetradic
#5F1688 #882616 #3F8816 #167888
square
#5F1688 #882616 #3F8816 #167888
split-complementary
#5F1688 #788816 #168826
monochromatic
#15051F #3A0D53 #5F1688 #841FBD #A339DF

Accessibility & contrast

On white

10.73
#5F1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1688
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1688#FFFFFF#000000##FFFFFF
##5F16881.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1688;
/* rgb */ color: rgb(95, 22, 136);
/* oklch */ color: oklch(38.6% 0.175 309.1);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5f1688',
    950: '#000000',
  },
}
SCSS
$custom: #5f1688;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1688",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 278.421,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.17473,
    "h": 309.1
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#5F1688
secondary
#6BBC3E
accent
#EF397A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1688

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

Preview Lab → · Contrast checker → · Palette generator →

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