#5F158F#5F158F

#5F158F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.182 H 306.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5F158F
RGBrgb(95, 21, 143)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(33.6%, 85.3%, 0%, 43.9%)
CIE-LABlab(26.60, 51.99, -51.29)
CIE-LCHlch(26.60, 73.03, 315.39°)
OKLaboklab(39.11% 0.1088 -0.1461)
OKLCHoklch(39.11% 0.182 306.7)
XYZxyz(9.9443, 4.9525, 26.4133)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F158F #458F15
analogous
#22158F #5F158F #8F1582
triadic
#5F158F #8F5F15 #158F5F
tetradic
#5F158F #8F2215 #458F15 #15828F
square
#5F158F #8F2215 #458F15 #15828F
split-complementary
#5F158F #828F15 #158F22
monochromatic
#180524 #3C0D5A #5F158F #821DC4 #A13CE2

Accessibility & contrast

On white

10.55
#5F158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F158F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F158F#FFFFFF#000000##FFFFFF
##5F158F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#563754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f158f;
/* rgb */ color: rgb(95, 21, 143);
/* oklch */ color: oklch(39.1% 0.182 306.7);
Tailwind
colors: {
  custom: {
    50: '#925eb1',
    500: '#5f158f',
    950: '#000000',
  },
}
SCSS
$custom: #5f158f;
$custom-light: #925eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f158f",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 276.393,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.18217,
    "h": 306.7
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#5F158F
secondary
#72C23E
accent
#F13780
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F158F

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

Preview Lab → · Contrast checker → · Palette generator →

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