#5F1966#5F1966

#5F1966 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.140 H 324.0°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5F1966
RGBrgb(95, 25, 102)
HSLhsl(295, 61%, 25%)
HSVhsv(295, 75%, 40%)
CMYKcmyk(6.9%, 75.5%, 0%, 60%)
CIE-LABlab(23.96, 41.88, -29.49)
CIE-LCHlch(23.96, 51.23, 324.85°)
OKLaboklab(36.27% 0.113 -0.0822)
OKLCHoklch(36.27% 0.14 324)
XYZxyz(7.4650, 4.0879, 12.9636)
Luminance0.0409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1966 #206619
analogous
#381966 #5F1966 #661947
triadic
#5F1966 #665F19 #19665F
tetradic
#5F1966 #663819 #206619 #194766
square
#5F1966 #663819 #206619 #194766
split-complementary
#5F1966 #476619 #196638
monochromatic
#170619 #310D35 #5F1966 #8D2597 #BB31C8

Accessibility & contrast

On white

11.55
#5F1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1966
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1966#FFFFFF#000000##FFFFFF
##5F19661.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013468
Deuteranopia (green-blind)
#273C64
Tritanopia (blue-blind)
#61263E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1966;
/* rgb */ color: rgb(95, 25, 102);
/* oklch */ color: oklch(36.3% 0.140 324.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d92',
    500: '#5f1966',
    950: '#000000',
  },
}
SCSS
$custom: #5f1966;
$custom-light: #8f5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1966",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 294.545,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36273,
    "c": 0.13974,
    "h": 324
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#5F1966
secondary
#479C3F
accent
#E44453
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1966

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

Preview Lab → · Contrast checker → · Palette generator →

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