#5F1575#5F1575

#5F1575 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 316.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5F1575
RGBrgb(95, 21, 117)
HSLhsl(286, 70%, 27%)
HSVhsv(286, 82%, 46%)
CMYKcmyk(18.8%, 82.1%, 0%, 54.1%)
CIE-LABlab(24.49, 46.37, -38.33)
CIE-LCHlch(24.49, 60.16, 320.42°)
OKLaboklab(36.99% 0.1153 -0.108)
OKLCHoklch(36.99% 0.158 316.9)
XYZxyz(8.1979, 4.2539, 17.2154)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1575 #2B7515
analogous
#2F1575 #5F1575 #75155B
triadic
#5F1575 #755F15 #15755F
tetradic
#5F1575 #752F15 #2B7515 #155B75
square
#5F1575 #752F15 #2B7515 #155B75
split-complementary
#5F1575 #5B7515 #15752F
monochromatic
#15051A #350C41 #5F1575 #891EA9 #B12BD9

Accessibility & contrast

On white

11.35
#5F1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F1575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1575
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1575#FFFFFF#000000##FFFFFF
##5F15751.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#163C73
Tritanopia (blue-blind)
#5E2B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1575;
/* rgb */ color: rgb(95, 21, 117);
/* oklch */ color: oklch(37.0% 0.158 316.9);
Tailwind
colors: {
  custom: {
    50: '#905d9d',
    500: '#5f1575',
    950: '#000000',
  },
}
SCSS
$custom: #5f1575;
$custom-light: #905d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1575",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 286.25,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36985,
    "c": 0.15799,
    "h": 316.9
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#5F1575
secondary
#55AB3B
accent
#EC3B64
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1575

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

Preview Lab → · Contrast checker → · Palette generator →

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