#5E1B82#5E1B82

#5E1B82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.164 H 310.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5E1B82
RGBrgb(94, 27, 130)
HSLhsl(279, 66%, 31%)
HSVhsv(279, 79%, 51%)
CMYKcmyk(27.7%, 79.2%, 0%, 49%)
CIE-LABlab(26.09, 46.80, -44.01)
CIE-LCHlch(26.09, 64.25, 316.76°)
OKLaboklab(38.39% 0.106 -0.1248)
OKLCHoklch(38.39% 0.164 310.4)
XYZxyz(9.0365, 4.7755, 21.5605)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B82 #3F821B
analogous
#2A1B82 #5E1B82 #821B72
triadic
#5E1B82 #825E1B #1B825E
tetradic
#5E1B82 #822A1B #3F821B #1B7282
square
#5E1B82 #822A1B #3F821B #1B7282
split-complementary
#5E1B82 #72821B #1B822A
monochromatic
#15061D #39104F #5E1B82 #8326B5 #A240D7

Accessibility & contrast

On white

10.74
#5E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B82
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B82#FFFFFF#000000##FFFFFF
##5E1B821.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b82;
/* rgb */ color: rgb(94, 27, 130);
/* oklch */ color: oklch(38.4% 0.164 310.4);
Tailwind
colors: {
  custom: {
    50: '#9060a7',
    500: '#5e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b82;
$custom-light: #9060a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b82",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 279.029,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38387,
    "c": 0.16375,
    "h": 310.4
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#5E1B82
secondary
#6BB643
accent
#E93F7A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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