#5F1668#5F1668

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

Color values

HEX#5F1668
RGBrgb(95, 22, 104)
HSLhsl(293, 65%, 25%)
HSVhsv(293, 79%, 41%)
CMYKcmyk(8.7%, 78.8%, 0%, 59.2%)
CIE-LABlab(23.69, 43.41, -31.22)
CIE-LCHlch(23.69, 53.47, 324.27°)
OKLaboklab(36.13% 0.116 -0.0872)
OKLCHoklch(36.13% 0.145 323.1)
XYZxyz(7.5047, 4.0066, 13.4721)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1668 #1F6816
analogous
#361668 #5F1668 #681648
triadic
#5F1668 #685F16 #16685F
tetradic
#5F1668 #683616 #1F6816 #164868
square
#5F1668 #683616 #1F6816 #164868
split-complementary
#5F1668 #486816 #166836
monochromatic
#170519 #310B35 #5F1668 #8D219B #BB2BCD

Accessibility & contrast

On white

11.66
#5F1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1668
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1668#FFFFFF#000000##FFFFFF
##5F16681.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#243B66
Tritanopia (blue-blind)
#61253E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1668;
/* rgb */ color: rgb(95, 22, 104);
/* oklch */ color: oklch(36.1% 0.145 323.1);
Tailwind
colors: {
  custom: {
    50: '#8f5c93',
    500: '#5f1668',
    950: '#000000',
  },
}
SCSS
$custom: #5f1668;
$custom-light: #8f5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1668",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 293.415,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.36125,
    "c": 0.14513,
    "h": 323.1
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#5F1668
secondary
#469F3B
accent
#E84052
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1668

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

Preview Lab → · Contrast checker → · Palette generator →

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