#5F1166#5F1166

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

Color values

HEX#5F1166
RGBrgb(95, 17, 102)
HSLhsl(295, 71%, 23%)
HSVhsv(295, 83%, 40%)
CMYKcmyk(6.9%, 83.3%, 0%, 60%)
CIE-LABlab(22.98, 44.70, -31.06)
CIE-LCHlch(22.98, 54.44, 325.20°)
OKLaboklab(35.57% 0.1208 -0.0867)
OKLCHoklch(35.57% 0.149 324.3)
XYZxyz(7.3178, 3.7936, 12.9146)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1166 #186611
analogous
#341166 #5F1166 #661142
triadic
#5F1166 #665F11 #11665F
tetradic
#5F1166 #663411 #186611 #114266
square
#5F1166 #663411 #186611 #114266
split-complementary
#5F1166 #426611 #116634
monochromatic
#18041A #2E0832 #5F1166 #901A9A #C122CF

Accessibility & contrast

On white

11.94
#5F1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1166
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1166#FFFFFF#000000##FFFFFF
##5F11661.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#233A64
Tritanopia (blue-blind)
#61223C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1166;
/* rgb */ color: rgb(95, 17, 102);
/* oklch */ color: oklch(35.6% 0.149 324.3);
Tailwind
colors: {
  custom: {
    50: '#905a92',
    500: '#5f1166',
    950: '#000000',
  },
}
SCSS
$custom: #5f1166;
$custom-light: #905a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1166",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 295.059,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35573,
    "c": 0.14867,
    "h": 324.3
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#5F1166
secondary
#3D9E35
accent
#EE3A48
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1166

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

Preview Lab → · Contrast checker → · Palette generator →

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