#5E2494#5E2494

#5E2494 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.172 H 302.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2494
RGBrgb(94, 36, 148)
HSLhsl(271, 61%, 36%)
HSVhsv(271, 76%, 58%)
CMYKcmyk(36.5%, 75.7%, 0%, 42%)
CIE-LABlab(28.85, 47.29, -50.71)
CIE-LCHlch(28.85, 69.34, 313.00°)
OKLaboklab(40.79% 0.0936 -0.1445)
OKLCHoklch(40.79% 0.172 302.9)
XYZxyz(10.5910, 5.7795, 28.5688)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2494 #5A9424
analogous
#262494 #5E2494 #942492
triadic
#5E2494 #945E24 #24945E
tetradic
#5E2494 #942624 #5A9424 #249294
square
#5E2494 #942624 #5A9424 #249294
split-complementary
#5E2494 #929424 #249426
monochromatic
#1F0C32 #3F1863 #5E2494 #7D30C5 #9B5BD7

Accessibility & contrast

On white

9.74
#5E2494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2494
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2494#FFFFFF#000000##FFFFFF
##5E24941.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#53405A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2494;
/* rgb */ color: rgb(94, 36, 148);
/* oklch */ color: oklch(40.8% 0.172 302.9);
Tailwind
colors: {
  custom: {
    50: '#9165b4',
    500: '#5e2494',
    950: '#000000',
  },
}
SCSS
$custom: #5e2494;
$custom-light: #9165b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2494",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 271.071,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40787,
    "c": 0.17218,
    "h": 302.9
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#5E2494
secondary
#88BC58
accent
#E44491
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2494

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

Preview Lab → · Contrast checker → · Palette generator →

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