#5E2EA4#5E2EA4

#5E2EA4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.178 H 296.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA4
RGBrgb(94, 46, 164)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(42.7%, 72%, 0%, 35.7%)
CIE-LABlab(31.84, 46.65, -55.59)
CIE-LCHlch(31.84, 72.57, 310.01°)
OKLaboklab(43.31% 0.0804 -0.1589)
OKLCHoklch(43.31% 0.178 296.8)
XYZxyz(12.2922, 7.0138, 35.8209)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA4 #74A42E
analogous
#2E39A4 #5E2EA4 #992EA4
triadic
#5E2EA4 #A45E2E #2EA45E
tetradic
#5E2EA4 #A42E39 #74A42E #2EA499
square
#5E2EA4 #A42E39 #74A42E #2EA499
split-complementary
#5E2EA4 #A4992E #39A42E
monochromatic
#271344 #432174 #5E2EA4 #7B45CB #9D74D8

Accessibility & contrast

On white

8.74
#5E2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA4
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA4#FFFFFF#000000##FFFFFF
##5E2EA41.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4C4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea4;
/* rgb */ color: rgb(94, 46, 164);
/* oklch */ color: oklch(43.3% 0.178 296.8);
Tailwind
colors: {
  custom: {
    50: '#926bc0',
    500: '#5e2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea4;
$custom-light: #926bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea4",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 264.407,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43312,
    "c": 0.17812,
    "h": 296.8
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

primary
#5E2EA4
secondary
#9FC06E
accent
#DF48A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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