#5F1667#5F1667

#5F1667 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.144 H 323.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#5F1667
RGBrgb(95, 22, 103)
HSLhsl(294, 65%, 25%)
HSVhsv(294, 79%, 40%)
CMYKcmyk(7.8%, 78.6%, 0%, 59.6%)
CIE-LABlab(23.63, 43.22, -30.68)
CIE-LCHlch(23.63, 53.00, 324.63°)
OKLaboklab(36.06% 0.1161 -0.0856)
OKLCHoklch(36.06% 0.144 323.6)
XYZxyz(7.4542, 3.9864, 13.2062)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1667 #1E6716
analogous
#371667 #5F1667 #671647
triadic
#5F1667 #675F16 #16675F
tetradic
#5F1667 #673716 #1E6716 #164767
square
#5F1667 #673716 #1E6716 #164767
split-complementary
#5F1667 #476716 #166737
monochromatic
#170519 #300B35 #5F1667 #8E2199 #BC2CCC

Accessibility & contrast

On white

11.68
#5F1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F1667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1667
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1667#FFFFFF#000000##FFFFFF
##5F16671.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#243B65
Tritanopia (blue-blind)
#61253D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1667;
/* rgb */ color: rgb(95, 22, 103);
/* oklch */ color: oklch(36.1% 0.144 323.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c93',
    500: '#5f1667',
    950: '#000000',
  },
}
SCSS
$custom: #5f1667;
$custom-light: #8f5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1667",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 294.074,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.36056,
    "c": 0.14424,
    "h": 323.6
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#5F1667
secondary
#459E3B
accent
#E84051
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1667

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

Preview Lab → · Contrast checker → · Palette generator →

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