#5E2EA6#5E2EA6

#5E2EA6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.180 H 296.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA6
RGBrgb(94, 46, 166)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.4%, 72.3%, 0%, 34.9%)
CIE-LABlab(32.00, 47.18, -56.52)
CIE-LCHlch(32.00, 73.63, 309.85°)
OKLaboklab(43.48% 0.08 -0.1617)
OKLCHoklch(43.48% 0.18 296.3)
XYZxyz(12.4742, 7.0866, 36.7796)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA6 #76A62E
analogous
#2E3AA6 #5E2EA6 #9A2EA6
triadic
#5E2EA6 #A65E2E #2EA65E
tetradic
#5E2EA6 #A62E3A #76A62E #2EA69A
square
#5E2EA6 #A62E3A #76A62E #2EA69A
split-complementary
#5E2EA6 #A69A2E #3AA62E
monochromatic
#281346 #432176 #5E2EA6 #7B46CC #9D76D9

Accessibility & contrast

On white

8.69
#5E2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA6
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA6#FFFFFF#000000##FFFFFF
##5E2EA61.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#4B4C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea6;
/* rgb */ color: rgb(94, 46, 166);
/* oklch */ color: oklch(43.5% 0.180 296.3);
Tailwind
colors: {
  custom: {
    50: '#926bc1',
    500: '#5e2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea6;
$custom-light: #926bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea6",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 264,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4348,
    "c": 0.1804,
    "h": 296.3
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

primary
#5E2EA6
secondary
#A0C16F
accent
#E048A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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