#5F159E#5F159E

#5F159E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.5% C 0.196 H 301.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5F159E
RGBrgb(95, 21, 158)
HSLhsl(272, 77%, 35%)
HSVhsv(272, 87%, 62%)
CMYKcmyk(39.9%, 86.7%, 0%, 38%)
CIE-LABlab(27.95, 55.39, -58.30)
CIE-LCHlch(27.95, 80.42, 313.53°)
OKLaboklab(40.46% 0.1037 -0.1667)
OKLCHoklch(40.46% 0.196 301.9)
XYZxyz(11.1575, 5.4378, 32.8029)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F159E #549E15
analogous
#1B159E #5F159E #9E1598
triadic
#5F159E #9E5F15 #159E5F
tetradic
#5F159E #9E1B15 #549E15 #15989E
square
#5F159E #9E1B15 #549E15 #15989E
split-complementary
#5F159E #989E15 #159E1B
monochromatic
#1E0732 #3F0E68 #5F159E #7F1CD4 #9D47E7

Accessibility & contrast

On white

10.06
#5F159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F159E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F159E#FFFFFF#000000##FFFFFF
##5F159E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#513E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f159e;
/* rgb */ color: rgb(95, 21, 158);
/* oklch */ color: oklch(40.5% 0.196 301.9);
Tailwind
colors: {
  custom: {
    50: '#935fbc',
    500: '#5f159e',
    950: '#000000',
  },
}
SCSS
$custom: #5f159e;
$custom-light: #935fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f159e",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 272.409,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.19633,
    "h": 301.9
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#5F159E
secondary
#82C747
accent
#F3358C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F159E

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

Preview Lab → · Contrast checker → · Palette generator →

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