#5E1A8B#5E1A8B

#5E1A8B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.174 H 307.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5E1A8B
RGBrgb(94, 26, 139)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 55%)
CMYKcmyk(32.4%, 81.3%, 0%, 45.5%)
CIE-LABlab(26.69, 49.22, -48.67)
CIE-LCHlch(26.69, 69.22, 315.33°)
OKLaboklab(39.04% 0.1047 -0.1385)
OKLCHoklch(39.04% 0.174 307.1)
XYZxyz(9.6447, 4.9827, 24.8748)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A8B #478B1A
analogous
#251A8B #5E1A8B #8B1A80
triadic
#5E1A8B #8B5E1A #1A8B5E
tetradic
#5E1A8B #8B251A #478B1A #1A808B
square
#5E1A8B #8B251A #478B1A #1A808B
split-complementary
#5E1A8B #808B1A #1A8B25
monochromatic
#180724 #3B1057 #5E1A8B #8124BF #9F43DC

Accessibility & contrast

On white

10.52
#5E1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A8B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A8B#FFFFFF#000000##FFFFFF
##5E1A8B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#563853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1a8b;
/* rgb */ color: rgb(94, 26, 139);
/* oklch */ color: oklch(39.0% 0.174 307.1);
Tailwind
colors: {
  custom: {
    50: '#9160ae',
    500: '#5e1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a8b;
$custom-light: #9160ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a8b",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 276.106,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39036,
    "c": 0.17361,
    "h": 307.1
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#5E1A8B
secondary
#74BD44
accent
#EB3C82
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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