#5E1A86#5E1A86

#5E1A86 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.169 H 308.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5E1A86
RGBrgb(94, 26, 134)
HSLhsl(278, 68%, 31%)
HSVhsv(278, 81%, 53%)
CMYKcmyk(29.9%, 80.6%, 0%, 47.5%)
CIE-LABlab(26.27, 48.09, -46.22)
CIE-LCHlch(26.27, 66.69, 316.14°)
OKLaboklab(38.62% 0.106 -0.1313)
OKLCHoklch(38.62% 0.169 308.9)
XYZxyz(9.2877, 4.8399, 22.9946)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A86 #42861A
analogous
#281A86 #5E1A86 #861A78
triadic
#5E1A86 #865E1A #1A865E
tetradic
#5E1A86 #86281A #42861A #1A7886
square
#5E1A86 #86281A #42861A #1A7886
split-complementary
#5E1A86 #78861A #1A8628
monochromatic
#16061F #3A1053 #5E1A86 #8224B9 #A140DA

Accessibility & contrast

On white

10.67
#5E1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A86
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A86#FFFFFF#000000##FFFFFF
##5E1A861.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#583550
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1a86;
/* rgb */ color: rgb(94, 26, 134);
/* oklch */ color: oklch(38.6% 0.169 308.9);
Tailwind
colors: {
  custom: {
    50: '#905faa',
    500: '#5e1a86',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a86;
$custom-light: #905faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a86",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 277.778,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3862,
    "c": 0.16872,
    "h": 308.9
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#5E1A86
secondary
#6EB942
accent
#EA3D7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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