#5E1EA6#5E1EA6

#5E1EA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.197 H 298.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5E1EA6
RGBrgb(94, 30, 166)
HSLhsl(268, 69%, 38%)
HSVhsv(268, 82%, 65%)
CMYKcmyk(43.4%, 81.9%, 0%, 34.9%)
CIE-LABlab(29.57, 54.16, -60.51)
CIE-LCHlch(29.57, 81.21, 311.83°)
OKLaboklab(41.77% 0.0935 -0.1733)
OKLCHoklch(41.77% 0.197 298.4)
XYZxyz(11.9615, 6.0612, 36.6087)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1EA6 #66A61E
analogous
#1E22A6 #5E1EA6 #A21EA6
triadic
#5E1EA6 #A65E1E #1EA65E
tetradic
#5E1EA6 #A61E22 #66A61E #1EA6A2
square
#5E1EA6 #A61E22 #66A61E #1EA6A2
split-complementary
#5E1EA6 #A6A21E #22A61E
monochromatic
#230B3E #411572 #5E1EA6 #7B29D8 #9B5DE2

Accessibility & contrast

On white

9.49
#5E1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1EA6
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1EA6#FFFFFF#000000##FFFFFF
##5E1EA61.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#4C4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e1ea6;
/* rgb */ color: rgb(94, 30, 166);
/* oklch */ color: oklch(41.8% 0.197 298.4);
Tailwind
colors: {
  custom: {
    50: '#9363c2',
    500: '#5e1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5e1ea6;
$custom-light: #9363c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1ea6",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 268.235,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41772,
    "c": 0.1969,
    "h": 298.4
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#5E1EA6
secondary
#93C65A
accent
#EC3C99
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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