#5E1EA7#5E1EA7

#5E1EA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.198 H 298.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5E1EA7
RGBrgb(94, 30, 167)
HSLhsl(268, 70%, 39%)
HSVhsv(268, 82%, 65%)
CMYKcmyk(43.7%, 82%, 0%, 34.5%)
CIE-LABlab(29.66, 54.40, -60.96)
CIE-LCHlch(29.66, 81.71, 311.75°)
OKLaboklab(41.86% 0.0932 -0.1746)
OKLCHoklch(41.86% 0.198 298.1)
XYZxyz(12.0536, 6.0980, 37.0937)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1EA7 #67A71E
analogous
#1E23A7 #5E1EA7 #A21EA7
triadic
#5E1EA7 #A75E1E #1EA75E
tetradic
#5E1EA7 #A71E23 #67A71E #1EA7A2
square
#5E1EA7 #A71E23 #67A71E #1EA7A2
split-complementary
#5E1EA7 #A7A21E #23A71E
monochromatic
#240B3F #411573 #5E1EA7 #7B2AD9 #9B5DE2

Accessibility & contrast

On white

9.46
#5E1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1EA7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1EA7#FFFFFF#000000##FFFFFF
##5E1EA71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#4B4564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e1ea7;
/* rgb */ color: rgb(94, 30, 167);
/* oklch */ color: oklch(41.9% 0.198 298.1);
Tailwind
colors: {
  custom: {
    50: '#9363c2',
    500: '#5e1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5e1ea7;
$custom-light: #9363c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1ea7",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 268.029,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41863,
    "c": 0.19792,
    "h": 298.1
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#5E1EA7
secondary
#94C65B
accent
#EC3B9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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