#5F158E#5F158E

#5F158E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.181 H 307.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5F158E
RGBrgb(95, 21, 142)
HSLhsl(277, 74%, 32%)
HSVhsv(277, 85%, 56%)
CMYKcmyk(33.1%, 85.2%, 0%, 44.3%)
CIE-LABlab(26.51, 51.76, -50.81)
CIE-LCHlch(26.51, 72.53, 315.53°)
OKLaboklab(39.03% 0.1091 -0.1447)
OKLCHoklch(39.03% 0.181 307)
XYZxyz(9.8689, 4.9223, 26.0161)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F158E #448E15
analogous
#22158E #5F158E #8E1581
triadic
#5F158E #8E5F15 #158E5F
tetradic
#5F158E #8E2215 #448E15 #15818E
square
#5F158E #8E2215 #448E15 #15818E
split-complementary
#5F158E #818E15 #158E22
monochromatic
#180523 #3B0D59 #5F158E #831DC3 #A13BE2

Accessibility & contrast

On white

10.58
#5F158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F158E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F158E#FFFFFF#000000##FFFFFF
##5F158E1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#573754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f158e;
/* rgb */ color: rgb(95, 21, 142);
/* oklch */ color: oklch(39.0% 0.181 307.0);
Tailwind
colors: {
  custom: {
    50: '#925eb0',
    500: '#5f158e',
    950: '#000000',
  },
}
SCSS
$custom: #5f158e;
$custom-light: #925eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f158e",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 276.694,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39027,
    "c": 0.18123,
    "h": 307
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#5F158E
secondary
#71C23D
accent
#F1377F
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F158E

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

Preview Lab → · Contrast checker → · Palette generator →

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