#5F1167#5F1167

#5F1167 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.150 H 323.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5F1167
RGBrgb(95, 17, 103)
HSLhsl(294, 72%, 24%)
HSVhsv(294, 83%, 40%)
CMYKcmyk(7.8%, 83.5%, 0%, 59.6%)
CIE-LABlab(23.05, 44.89, -31.61)
CIE-LCHlch(23.05, 54.90, 324.85°)
OKLaboklab(35.64% 0.1207 -0.0883)
OKLCHoklch(35.64% 0.15 323.8)
XYZxyz(7.3677, 3.8135, 13.1774)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1167 #196711
analogous
#341167 #5F1167 #671144
triadic
#5F1167 #675F11 #11675F
tetradic
#5F1167 #673411 #196711 #114467
square
#5F1167 #673411 #196711 #114467
split-complementary
#5F1167 #446711 #116734
monochromatic
#18041A #2F0832 #5F1167 #8F1A9C #C022D0

Accessibility & contrast

On white

11.91
#5F1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1167
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1167#FFFFFF#000000##FFFFFF
##5F11671.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#223A65
Tritanopia (blue-blind)
#61223C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1167;
/* rgb */ color: rgb(95, 17, 103);
/* oklch */ color: oklch(35.6% 0.150 323.8);
Tailwind
colors: {
  custom: {
    50: '#905a93',
    500: '#5f1167',
    950: '#000000',
  },
}
SCSS
$custom: #5f1167;
$custom-light: #905a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1167",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 294.419,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.14952,
    "h": 323.8
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#5F1167
secondary
#3F9F35
accent
#EE394A
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1167

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

Preview Lab → · Contrast checker → · Palette generator →

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