#5F1D64#5F1D64

#5F1D64 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.133 H 324.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1D64
RGBrgb(95, 29, 100)
HSLhsl(296, 55%, 25%)
HSVhsv(296, 71%, 39%)
CMYKcmyk(5%, 71%, 0%, 60.8%)
CIE-LABlab(24.42, 39.82, -27.45)
CIE-LCHlch(24.42, 48.36, 325.42°)
OKLaboklab(36.57% 0.1084 -0.0763)
OKLCHoklch(36.57% 0.133 324.9)
XYZxyz(7.4587, 4.2322, 12.4781)
Luminance0.0423 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D64 #22641D
analogous
#3C1D64 #5F1D64 #641D45
triadic
#5F1D64 #645F1D #1D645F
tetradic
#5F1D64 #643C1D #22641D #1D4564
square
#5F1D64 #643C1D #22641D #1D4564
split-complementary
#5F1D64 #45641D #1D643C
monochromatic
#170718 #320F35 #5F1D64 #8C2B93 #B939C3

Accessibility & contrast

On white

11.37
#5F1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1D64
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D64#FFFFFF#000000##FFFFFF
##5F1D641.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3566
Deuteranopia (green-blind)
#2A3D62
Tritanopia (blue-blind)
#61283E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1d64;
/* rgb */ color: rgb(95, 29, 100);
/* oklch */ color: oklch(36.6% 0.133 324.9);
Tailwind
colors: {
  custom: {
    50: '#8f5f90',
    500: '#5f1d64',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d64;
$custom-light: #8f5f90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d64",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 295.775,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36566,
    "c": 0.13257,
    "h": 324.9
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#5F1D64
secondary
#4A9944
accent
#DE4954
background
#F9F5F8
surface
#F1EAF0
border
#CBC6CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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