#5E1B8E#5E1B8E

#5E1B8E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.176 H 306.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5E1B8E
RGBrgb(94, 27, 142)
HSLhsl(275, 68%, 33%)
HSVhsv(275, 81%, 56%)
CMYKcmyk(33.8%, 81%, 0%, 44.3%)
CIE-LABlab(27.06, 49.55, -49.91)
CIE-LCHlch(27.06, 70.33, 314.79°)
OKLaboklab(39.38% 0.1031 -0.1421)
OKLCHoklch(39.38% 0.176 306)
XYZxyz(9.8894, 5.1166, 26.0526)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B8E #4B8E1B
analogous
#251B8E #5E1B8E #8E1B84
triadic
#5E1B8E #8E5E1B #1B8E5E
tetradic
#5E1B8E #8E251B #4B8E1B #1B848E
square
#5E1B8E #8E251B #4B8E1B #1B848E
split-complementary
#5E1B8E #848E1B #1B8E25
monochromatic
#1A0727 #3C115B #5E1B8E #8025C1 #9E47DC

Accessibility & contrast

On white

10.38
#5E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B8E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B8E#FFFFFF#000000##FFFFFF
##5E1B8E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1b8e;
/* rgb */ color: rgb(94, 27, 142);
/* oklch */ color: oklch(39.4% 0.176 306.0);
Tailwind
colors: {
  custom: {
    50: '#9160b0',
    500: '#5e1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b8e;
$custom-light: #9160b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b8e",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 274.957,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3938,
    "c": 0.1756,
    "h": 306
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#5E1B8E
secondary
#79BE47
accent
#EB3D86
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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