#5E1966#5E1966

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

Color values

HEX#5E1966
RGBrgb(94, 25, 102)
HSLhsl(294, 61%, 25%)
HSVhsv(294, 75%, 40%)
CMYKcmyk(7.8%, 75.5%, 0%, 60%)
CIE-LABlab(23.79, 41.64, -29.78)
CIE-LCHlch(23.79, 51.20, 324.43°)
OKLaboklab(36.11% 0.1118 -0.083)
OKLCHoklch(36.11% 0.139 323.4)
XYZxyz(7.3618, 4.0347, 12.9588)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1966 #216619
analogous
#371966 #5E1966 #661948
triadic
#5E1966 #665E19 #19665E
tetradic
#5E1966 #663719 #216619 #194866
square
#5E1966 #663719 #216619 #194866
split-complementary
#5E1966 #486619 #196637
monochromatic
#170619 #310D35 #5E1966 #8B2597 #B931C8

Accessibility & contrast

On white

11.62
#5E1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1966
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1966#FFFFFF#000000##FFFFFF
##5E19661.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#263B64
Tritanopia (blue-blind)
#60273E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1966;
/* rgb */ color: rgb(94, 25, 102);
/* oklch */ color: oklch(36.1% 0.139 323.4);
Tailwind
colors: {
  custom: {
    50: '#8e5d92',
    500: '#5e1966',
    950: '#000000',
  },
}
SCSS
$custom: #5e1966;
$custom-light: #8e5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1966",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 293.766,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.13924,
    "h": 323.4
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#5E1966
secondary
#499C3F
accent
#E44455
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E1966

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

Preview Lab → · Contrast checker → · Palette generator →

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