#5E1A82#5E1A82

#5E1A82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.165 H 310.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5E1A82
RGBrgb(94, 26, 130)
HSLhsl(279, 67%, 31%)
HSVhsv(279, 80%, 51%)
CMYKcmyk(27.7%, 80%, 0%, 49%)
CIE-LABlab(25.95, 47.19, -44.23)
CIE-LCHlch(25.95, 64.67, 316.85°)
OKLaboklab(38.29% 0.1069 -0.1254)
OKLCHoklch(38.29% 0.165 310.5)
XYZxyz(9.0140, 4.7304, 21.5530)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A82 #3E821A
analogous
#2A1A82 #5E1A82 #821A72
triadic
#5E1A82 #825E1A #1A825E
tetradic
#5E1A82 #822A1A #3E821A #1A7282
square
#5E1A82 #822A1A #3E821A #1A7282
split-complementary
#5E1A82 #72821A #1A822A
monochromatic
#14061C #39104F #5E1A82 #8324B5 #A33ED8

Accessibility & contrast

On white

10.79
#5E1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A82
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A82#FFFFFF#000000##FFFFFF
##5E1A821.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#59344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1a82;
/* rgb */ color: rgb(94, 26, 130);
/* oklch */ color: oklch(38.3% 0.165 310.5);
Tailwind
colors: {
  custom: {
    50: '#905fa7',
    500: '#5e1a82',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a82;
$custom-light: #905fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a82",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 279.231,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38294,
    "c": 0.16481,
    "h": 310.5
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#5E1A82
secondary
#6AB642
accent
#EA3E7A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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