#5F1666#5F1666

#5F1666 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 324.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1666
RGBrgb(95, 22, 102)
HSLhsl(295, 65%, 24%)
HSVhsv(295, 78%, 40%)
CMYKcmyk(6.9%, 78.4%, 0%, 60%)
CIE-LABlab(23.56, 43.02, -30.13)
CIE-LCHlch(23.56, 52.53, 324.99°)
OKLaboklab(35.99% 0.1162 -0.084)
OKLCHoklch(35.99% 0.143 324.1)
XYZxyz(7.4043, 3.9665, 12.9434)
Luminance0.0397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1666 #1D6616
analogous
#371666 #5F1666 #661645
triadic
#5F1666 #665F16 #16665F
tetradic
#5F1666 #663716 #1D6616 #164566
square
#5F1666 #663716 #1D6616 #164566
split-complementary
#5F1666 #456616 #166637
monochromatic
#170519 #300B34 #5F1666 #8E2198 #BD2CCB

Accessibility & contrast

On white

11.71
#5F1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1666
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1666#FFFFFF#000000##FFFFFF
##5F16661.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#253B64
Tritanopia (blue-blind)
#61253D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1666;
/* rgb */ color: rgb(95, 22, 102);
/* oklch */ color: oklch(36.0% 0.143 324.1);
Tailwind
colors: {
  custom: {
    50: '#8f5c92',
    500: '#5f1666',
    950: '#000000',
  },
}
SCSS
$custom: #5f1666;
$custom-light: #8f5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1666",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 294.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35988,
    "c": 0.14335,
    "h": 324.1
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#5F1666
secondary
#449D3B
accent
#E8404F
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1666

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

Preview Lab → · Contrast checker → · Palette generator →

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