#5E2199#5E2199

#5E2199 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.181 H 301.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5E2199
RGBrgb(94, 33, 153)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(38.6%, 78.4%, 0%, 40%)
CIE-LABlab(28.82, 49.80, -53.83)
CIE-LCHlch(28.82, 73.34, 312.77°)
OKLaboklab(40.89% 0.0951 -0.1537)
OKLCHoklch(40.89% 0.181 301.7)
XYZxyz(10.9083, 5.7673, 30.6693)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2199 #5C9921
analogous
#222199 #5E2199 #992198
triadic
#5E2199 #995E21 #21995E
tetradic
#5E2199 #992221 #5C9921 #219899
square
#5E2199 #992221 #5C9921 #219899
split-complementary
#5E2199 #989921 #219922
monochromatic
#200B34 #3F1667 #5E2199 #7D2CCB #9B59DB

Accessibility & contrast

On white

9.75
#5E2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2199
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2199#FFFFFF#000000##FFFFFF
##5E21991.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#51415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2199;
/* rgb */ color: rgb(94, 33, 153);
/* oklch */ color: oklch(40.9% 0.181 301.7);
Tailwind
colors: {
  custom: {
    50: '#9264b8',
    500: '#5e2199',
    950: '#000000',
  },
}
SCSS
$custom: #5e2199;
$custom-light: #9264b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2199",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 270.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40895,
    "c": 0.18072,
    "h": 301.7
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#5E2199
secondary
#8ABF56
accent
#E84093
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2199

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

Preview Lab → · Contrast checker → · Palette generator →

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