#5F2387#5F2387

#5F2387 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.160 H 308.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5F2387
RGBrgb(95, 35, 135)
HSLhsl(276, 59%, 33%)
HSVhsv(276, 74%, 53%)
CMYKcmyk(29.6%, 74.1%, 0%, 47.1%)
CIE-LABlab(27.80, 44.79, -44.35)
CIE-LCHlch(27.80, 63.04, 315.28°)
OKLaboklab(39.75% 0.0986 -0.1258)
OKLCHoklch(39.75% 0.16 308.1)
XYZxyz(9.6926, 5.3844, 23.4457)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2387 #4B8723
analogous
#2D2387 #5F2387 #87237D
triadic
#5F2387 #875F23 #23875F
tetradic
#5F2387 #872D23 #4B8723 #237D87
square
#5F2387 #872D23 #4B8723 #237D87
split-complementary
#5F2387 #7D8723 #23872D
monochromatic
#1B0A26 #3D1656 #5F2387 #8130B8 #9F52D2

Accessibility & contrast

On white

10.11
#5F2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2387
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2387#FFFFFF#000000##FFFFFF
##5F23871.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#044285
Tritanopia (blue-blind)
#593A53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f2387;
/* rgb */ color: rgb(95, 35, 135);
/* oklch */ color: oklch(39.8% 0.160 308.1);
Tailwind
colors: {
  custom: {
    50: '#9064ab',
    500: '#5f2387',
    950: '#000000',
  },
}
SCSS
$custom: #5f2387;
$custom-light: #9064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2387",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 276,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39754,
    "c": 0.15983,
    "h": 308.1
  },
  "luminance": 0.05384
}

Semantic roles & 50–950 ramp

primary
#5F2387
secondary
#79B650
accent
#E24684
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2387

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

Preview Lab → · Contrast checker → · Palette generator →

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