#5E2FA4#5E2FA4

#5E2FA4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.177 H 296.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA4
RGBrgb(94, 47, 164)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 64%)
CMYKcmyk(42.7%, 71.3%, 0%, 35.7%)
CIE-LABlab(32.02, 46.15, -55.30)
CIE-LCHlch(32.02, 72.02, 309.85°)
OKLaboklab(43.44% 0.0794 -0.1581)
OKLCHoklch(43.44% 0.177 296.7)
XYZxyz(12.3317, 7.0928, 35.8341)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA4 #75A42F
analogous
#2F3AA4 #5E2FA4 #992FA4
triadic
#5E2FA4 #A45E2F #2FA45E
tetradic
#5E2FA4 #A42F3A #75A42F #2FA499
square
#5E2FA4 #A42F3A #75A42F #2FA499
split-complementary
#5E2FA4 #A4992F #3AA42F
monochromatic
#271445 #432174 #5E2FA4 #7B46CA #9D76D8

Accessibility & contrast

On white

8.68
#5E2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2FA4
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA4#FFFFFF#000000##FFFFFF
##5E2FA41.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#4C4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa4;
/* rgb */ color: rgb(94, 47, 164);
/* oklch */ color: oklch(43.4% 0.177 296.7);
Tailwind
colors: {
  custom: {
    50: '#926bc0',
    500: '#5e2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa4;
$custom-light: #926bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa4",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 264.103,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43439,
    "c": 0.17691,
    "h": 296.7
  },
  "luminance": 0.07093
}

Semantic roles & 50–950 ramp

primary
#5E2FA4
secondary
#9FC06F
accent
#DF49A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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