#5E2194#5E2194

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

Color values

HEX#5E2194
RGBrgb(94, 33, 148)
HSLhsl(272, 64%, 35%)
HSVhsv(272, 78%, 58%)
CMYKcmyk(36.5%, 77.7%, 0%, 42%)
CIE-LABlab(28.39, 48.59, -51.45)
CIE-LCHlch(28.39, 70.77, 313.36°)
OKLaboklab(40.47% 0.0964 -0.1467)
OKLCHoklch(40.47% 0.176 303.3)
XYZxyz(10.5040, 5.6055, 28.5398)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2194 #579421
analogous
#242194 #5E2194 #942190
triadic
#5E2194 #945E21 #21945E
tetradic
#5E2194 #942421 #579421 #219094
square
#5E2194 #942421 #579421 #219094
split-complementary
#5E2194 #909421 #219424
monochromatic
#1E0B30 #3E1662 #5E2194 #7E2CC6 #9C56D9

Accessibility & contrast

On white

9.90
#5E2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2194
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2194#FFFFFF#000000##FFFFFF
##5E21941.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#533F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2194;
/* rgb */ color: rgb(94, 33, 148);
/* oklch */ color: oklch(40.5% 0.176 303.3);
Tailwind
colors: {
  custom: {
    50: '#9163b4',
    500: '#5e2194',
    950: '#000000',
  },
}
SCSS
$custom: #5e2194;
$custom-light: #9163b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2194",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 271.826,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40468,
    "c": 0.17552,
    "h": 303.3
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#5E2194
secondary
#85BD54
accent
#E7418F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2194

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

Preview Lab → · Contrast checker → · Palette generator →

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