#5E1E8A#5E1E8A

#5E1E8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.168 H 307.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5E1E8A
RGBrgb(94, 30, 138)
HSLhsl(276, 64%, 33%)
HSVhsv(276, 78%, 54%)
CMYKcmyk(31.9%, 78.3%, 0%, 45.9%)
CIE-LABlab(27.14, 47.45, -47.31)
CIE-LCHlch(27.14, 67.00, 315.08°)
OKLaboklab(39.33% 0.1015 -0.1345)
OKLCHoklch(39.33% 0.168 307)
XYZxyz(9.6668, 5.1433, 24.5233)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E8A #4A8A1E
analogous
#281E8A #5E1E8A #8A1E80
triadic
#5E1E8A #8A5E1E #1E8A5E
tetradic
#5E1E8A #8A281E #4A8A1E #1E808A
square
#5E1E8A #8A281E #4A8A1E #1E808A
split-complementary
#5E1E8A #808A1E #1E8A28
monochromatic
#1A0825 #3C1358 #5E1E8A #8029BC #9E4BD8

Accessibility & contrast

On white

10.35
#5E1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E8A
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E8A#FFFFFF#000000##FFFFFF
##5E1E8A1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#563953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1e8a;
/* rgb */ color: rgb(94, 30, 138);
/* oklch */ color: oklch(39.3% 0.168 307.0);
Tailwind
colors: {
  custom: {
    50: '#9061ad',
    500: '#5e1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e8a;
$custom-light: #9061ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e8a",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 275.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39329,
    "c": 0.16849,
    "h": 307
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#5E1E8A
secondary
#77BA4A
accent
#E74184
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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