#5F1665#5F1665

#5F1665 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.142 H 324.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5F1665
RGBrgb(95, 22, 101)
HSLhsl(295, 64%, 24%)
HSVhsv(295, 78%, 40%)
CMYKcmyk(5.9%, 78.2%, 0%, 60.4%)
CIE-LABlab(23.49, 42.83, -29.58)
CIE-LCHlch(23.49, 52.05, 325.37°)
OKLaboklab(35.92% 0.1162 -0.0824)
OKLCHoklch(35.92% 0.142 324.7)
XYZxyz(7.3550, 3.9468, 12.6838)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1665 #1C6516
analogous
#381665 #5F1665 #651644
triadic
#5F1665 #655F16 #16655F
tetradic
#5F1665 #653816 #1C6516 #164465
square
#5F1665 #653816 #1C6516 #164465
split-complementary
#5F1665 #446516 #166538
monochromatic
#180519 #300B33 #5F1665 #8E2197 #BE2CCA

Accessibility & contrast

On white

11.74
#5F1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1665
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1665#FFFFFF#000000##FFFFFF
##5F16651.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#263B63
Tritanopia (blue-blind)
#61243C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1665;
/* rgb */ color: rgb(95, 22, 101);
/* oklch */ color: oklch(35.9% 0.142 324.7);
Tailwind
colors: {
  custom: {
    50: '#8f5c91',
    500: '#5f1665',
    950: '#000000',
  },
}
SCSS
$custom: #5f1665;
$custom-light: #8f5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1665",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 295.443,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3592,
    "c": 0.14246,
    "h": 324.7
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#5F1665
secondary
#429C3B
accent
#E7414D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040D
muted
#7E797D

Preview Lab

Preview with #5F1665

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

Preview Lab → · Contrast checker → · Palette generator →

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