#5F1988#5F1988

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

Color values

HEX#5F1988
RGBrgb(95, 25, 136)
HSLhsl(278, 69%, 32%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(30.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(26.46, 49.08, -47.15)
CIE-LCHlch(26.46, 68.06, 316.15°)
OKLaboklab(38.84% 0.1078 -0.134)
OKLCHoklch(38.84% 0.172 308.8)
XYZxyz(9.5100, 4.9059, 23.7337)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1988 #428819
analogous
#281988 #5F1988 #88197A
triadic
#5F1988 #885F19 #19885F
tetradic
#5F1988 #882819 #428819 #197A88
square
#5F1988 #882819 #428819 #197A88
split-complementary
#5F1988 #7A8819 #198828
monochromatic
#170621 #3B0F54 #5F1988 #8323BC #A240DC

Accessibility & contrast

On white

10.60
#5F1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1988
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1988#FFFFFF#000000##FFFFFF
##5F19881.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#593651
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1988;
/* rgb */ color: rgb(95, 25, 136);
/* oklch */ color: oklch(38.8% 0.172 308.8);
Tailwind
colors: {
  custom: {
    50: '#915fab',
    500: '#5f1988',
    950: '#000000',
  },
}
SCSS
$custom: #5f1988;
$custom-light: #915fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1988",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 277.838,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38837,
    "c": 0.17194,
    "h": 308.8
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#5F1988
secondary
#6EBB41
accent
#EC3C7D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1988

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

Preview Lab → · Contrast checker → · Palette generator →

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