#5F158D#5F158D

#5F158D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.180 H 307.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5F158D
RGBrgb(95, 21, 141)
HSLhsl(277, 74%, 32%)
HSVhsv(277, 85%, 55%)
CMYKcmyk(32.6%, 85.1%, 0%, 44.7%)
CIE-LABlab(26.43, 51.54, -50.33)
CIE-LCHlch(26.43, 72.04, 315.68°)
OKLaboklab(38.94% 0.1094 -0.1433)
OKLCHoklch(38.94% 0.18 307.4)
XYZxyz(9.7942, 4.8924, 25.6225)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F158D #438D15
analogous
#23158D #5F158D #8D157F
triadic
#5F158D #8D5F15 #158D5F
tetradic
#5F158D #8D2315 #438D15 #157F8D
square
#5F158D #8D2315 #438D15 #157F8D
split-complementary
#5F158D #7F8D15 #158D23
monochromatic
#170522 #3B0D58 #5F158D #831DC2 #A23BE2

Accessibility & contrast

On white

10.61
#5F158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F158D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F158D#FFFFFF#000000##FFFFFF
##5F158D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#573653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f158d;
/* rgb */ color: rgb(95, 21, 141);
/* oklch */ color: oklch(38.9% 0.180 307.4);
Tailwind
colors: {
  custom: {
    50: '#925eaf',
    500: '#5f158d',
    950: '#000000',
  },
}
SCSS
$custom: #5f158d;
$custom-light: #925eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f158d",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 277,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3894,
    "c": 0.18029,
    "h": 307.4
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#5F158D
secondary
#70C13D
accent
#F1377E
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F158D

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

Preview Lab → · Contrast checker → · Palette generator →

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