#5E1A97#5E1A97

#5E1A97 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.185 H 303.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5E1A97
RGBrgb(94, 26, 151)
HSLhsl(273, 71%, 35%)
HSVhsv(273, 83%, 59%)
CMYKcmyk(37.7%, 82.8%, 0%, 40.8%)
CIE-LABlab(27.72, 52.01, -54.40)
CIE-LCHlch(27.72, 75.26, 313.71°)
OKLaboklab(40.08% 0.1013 -0.1553)
OKLCHoklch(40.08% 0.185 303.1)
XYZxyz(10.5701, 5.3528, 29.7485)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A97 #53971A
analogous
#201A97 #5E1A97 #971A92
triadic
#5E1A97 #975E1A #1A975E
tetradic
#5E1A97 #97201A #53971A #1A9297
square
#5E1A97 #97201A #53971A #1A9297
split-complementary
#5E1A97 #92971A #1A9720
monochromatic
#1D082F #3D1163 #5E1A97 #7F23CB #9C4BE0

Accessibility & contrast

On white

10.14
#5E1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A97
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A97#FFFFFF#000000##FFFFFF
##5E1A971.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#523D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1a97;
/* rgb */ color: rgb(94, 26, 151);
/* oklch */ color: oklch(40.1% 0.185 303.1);
Tailwind
colors: {
  custom: {
    50: '#9260b7',
    500: '#5e1a97',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a97;
$custom-light: #9260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a97",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 272.64,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40075,
    "c": 0.18542,
    "h": 303.1
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#5E1A97
secondary
#81C24B
accent
#ED3A8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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