#5E2196#5E2196

#5E2196 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.178 H 302.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5E2196
RGBrgb(94, 33, 150)
HSLhsl(271, 64%, 36%)
HSVhsv(271, 78%, 59%)
CMYKcmyk(37.3%, 78%, 0%, 41.2%)
CIE-LABlab(28.56, 49.07, -52.41)
CIE-LCHlch(28.56, 71.80, 313.12°)
OKLaboklab(40.64% 0.0959 -0.1495)
OKLCHoklch(40.64% 0.178 302.7)
XYZxyz(10.6637, 5.6694, 29.3808)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2196 #599621
analogous
#232196 #5E2196 #962193
triadic
#5E2196 #965E21 #21965E
tetradic
#5E2196 #962321 #599621 #219396
square
#5E2196 #962321 #599621 #219396
split-complementary
#5E2196 #939621 #219623
monochromatic
#1F0B32 #3F1664 #5E2196 #7D2CC8 #9B57DA

Accessibility & contrast

On white

9.84
#5E2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2196
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2196#FFFFFF#000000##FFFFFF
##5E21961.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2196;
/* rgb */ color: rgb(94, 33, 150);
/* oklch */ color: oklch(40.6% 0.178 302.7);
Tailwind
colors: {
  custom: {
    50: '#9163b6',
    500: '#5e2196',
    950: '#000000',
  },
}
SCSS
$custom: #5e2196;
$custom-light: #9163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2196",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 271.282,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40638,
    "c": 0.1776,
    "h": 302.7
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#5E2196
secondary
#87BE55
accent
#E74190
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2196

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

Preview Lab → · Contrast checker → · Palette generator →

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