#5E1970#5E1970

#5E1970 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.149 H 318.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5E1970
RGBrgb(94, 25, 112)
HSLhsl(288, 64%, 27%)
HSVhsv(288, 78%, 44%)
CMYKcmyk(16.1%, 77.7%, 0%, 56.1%)
CIE-LABlab(24.47, 43.67, -35.17)
CIE-LCHlch(24.47, 56.08, 321.15°)
OKLaboklab(36.82% 0.111 -0.0988)
OKLCHoklch(36.82% 0.149 318.3)
XYZxyz(7.8879, 4.2452, 15.7300)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1970 #2B7019
analogous
#331970 #5E1970 #701957
triadic
#5E1970 #705E19 #19705E
tetradic
#5E1970 #703319 #2B7019 #195770
square
#5E1970 #703319 #2B7019 #195770
split-complementary
#5E1970 #577019 #197033
monochromatic
#150619 #340E3E #5E1970 #8824A2 #B032D1

Accessibility & contrast

On white

11.36
#5E1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1970
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1970#FFFFFF#000000##FFFFFF
##5E19701.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#1D3C6E
Tritanopia (blue-blind)
#5E2B43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1970;
/* rgb */ color: rgb(94, 25, 112);
/* oklch */ color: oklch(36.8% 0.149 318.3);
Tailwind
colors: {
  custom: {
    50: '#8f5e9a',
    500: '#5e1970',
    950: '#000000',
  },
}
SCSS
$custom: #5e1970;
$custom-light: #8f5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1970",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 287.586,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36816,
    "c": 0.14859,
    "h": 318.3
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#5E1970
secondary
#55A540
accent
#E74163
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1970

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

Preview Lab → · Contrast checker → · Palette generator →

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