#5E2496#5E2496

#5E2496 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.174 H 302.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2496
RGBrgb(94, 36, 150)
HSLhsl(271, 61%, 36%)
HSVhsv(271, 76%, 59%)
CMYKcmyk(37.3%, 76%, 0%, 41.2%)
CIE-LABlab(29.01, 47.78, -51.67)
CIE-LCHlch(29.01, 70.38, 312.76°)
OKLaboklab(40.96% 0.0931 -0.1474)
OKLCHoklch(40.96% 0.174 302.3)
XYZxyz(10.7507, 5.8434, 29.4098)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2496 #5C9624
analogous
#252496 #5E2496 #962495
triadic
#5E2496 #965E24 #24965E
tetradic
#5E2496 #962524 #5C9624 #249596
square
#5E2496 #962524 #5C9624 #249596
split-complementary
#5E2496 #959624 #249625
monochromatic
#200C33 #3F1865 #5E2496 #7D30C7 #9B5CD8

Accessibility & contrast

On white

9.68
#5E2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2496
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2496#FFFFFF#000000##FFFFFF
##5E24961.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#52415B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2496;
/* rgb */ color: rgb(94, 36, 150);
/* oklch */ color: oklch(41.0% 0.174 302.3);
Tailwind
colors: {
  custom: {
    50: '#9165b6',
    500: '#5e2496',
    950: '#000000',
  },
}
SCSS
$custom: #5e2496;
$custom-light: #9165b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2496",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 270.526,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40955,
    "c": 0.17433,
    "h": 302.3
  },
  "luminance": 0.05843
}

Semantic roles & 50–950 ramp

primary
#5E2496
secondary
#8ABD59
accent
#E44392
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2496

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

Preview Lab → · Contrast checker → · Palette generator →

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