#5E2096#5E2096

#5E2096 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.179 H 302.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5E2096
RGBrgb(94, 32, 150)
HSLhsl(272, 65%, 36%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(37.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(28.42, 49.49, -52.64)
CIE-LCHlch(28.42, 72.25, 313.23°)
OKLaboklab(40.54% 0.0967 -0.1502)
OKLCHoklch(40.54% 0.179 302.8)
XYZxyz(10.6363, 5.6147, 29.3716)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2096 #589620
analogous
#232096 #5E2096 #962093
triadic
#5E2096 #965E20 #20965E
tetradic
#5E2096 #962320 #589620 #209396
square
#5E2096 #962320 #589620 #209396
split-complementary
#5E2096 #939620 #209623
monochromatic
#1F0A31 #3E1564 #5E2096 #7E2BC8 #9C56DB

Accessibility & contrast

On white

9.89
#5E2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2096
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2096#FFFFFF#000000##FFFFFF
##5E20961.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#523F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2096;
/* rgb */ color: rgb(94, 32, 150);
/* oklch */ color: oklch(40.5% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#9163b6',
    500: '#5e2096',
    950: '#000000',
  },
}
SCSS
$custom: #5e2096;
$custom-light: #9163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2096",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 271.525,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40537,
    "c": 0.17865,
    "h": 302.8
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#5E2096
secondary
#86BE53
accent
#E84090
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2096

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

Preview Lab → · Contrast checker → · Palette generator →

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