#5E1A95#5E1A95

#5E1A95 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.183 H 303.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5E1A95
RGBrgb(94, 26, 149)
HSLhsl(273, 70%, 34%)
HSVhsv(273, 83%, 58%)
CMYKcmyk(36.9%, 82.6%, 0%, 41.6%)
CIE-LABlab(27.54, 51.54, -53.46)
CIE-LCHlch(27.54, 74.26, 313.95°)
OKLaboklab(39.9% 0.1019 -0.1525)
OKLCHoklch(39.9% 0.183 303.7)
XYZxyz(10.4090, 5.2884, 28.9003)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A95 #51951A
analogous
#211A95 #5E1A95 #951A8F
triadic
#5E1A95 #955E1A #1A955E
tetradic
#5E1A95 #95211A #51951A #1A8F95
square
#5E1A95 #95211A #51951A #1A8F95
split-complementary
#5E1A95 #8F951A #1A9521
monochromatic
#1C082D #3D1161 #5E1A95 #7F23C9 #9D4ADF

Accessibility & contrast

On white

10.21
#5E1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A95
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A95#FFFFFF#000000##FFFFFF
##5E1A951.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#533C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1a95;
/* rgb */ color: rgb(94, 26, 149);
/* oklch */ color: oklch(39.9% 0.183 303.7);
Tailwind
colors: {
  custom: {
    50: '#9260b5',
    500: '#5e1a95',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a95;
$custom-light: #9260b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a95",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 273.171,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39898,
    "c": 0.18345,
    "h": 303.7
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#5E1A95
secondary
#7FC14A
accent
#ED3B8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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