#5E2193#5E2193

#5E2193 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.174 H 303.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5E2193
RGBrgb(94, 33, 147)
HSLhsl(272, 63%, 35%)
HSVhsv(272, 78%, 58%)
CMYKcmyk(36.1%, 77.6%, 0%, 42.4%)
CIE-LABlab(28.31, 48.35, -50.97)
CIE-LCHlch(28.31, 70.25, 313.48°)
OKLaboklab(40.38% 0.0966 -0.1453)
OKLCHoklch(40.38% 0.174 303.6)
XYZxyz(10.4252, 5.5740, 28.1248)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2193 #569321
analogous
#252193 #5E2193 #93218F
triadic
#5E2193 #935E21 #21935E
tetradic
#5E2193 #932521 #569321 #218F93
square
#5E2193 #932521 #569321 #218F93
split-complementary
#5E2193 #8F9321 #219325
monochromatic
#1E0B2F #3E1661 #5E2193 #7E2CC5 #9C55D9

Accessibility & contrast

On white

9.93
#5E2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2193
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2193#FFFFFF#000000##FFFFFF
##5E21931.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#533E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2193;
/* rgb */ color: rgb(94, 33, 147);
/* oklch */ color: oklch(40.4% 0.174 303.6);
Tailwind
colors: {
  custom: {
    50: '#9163b4',
    500: '#5e2193',
    950: '#000000',
  },
}
SCSS
$custom: #5e2193;
$custom-light: #9163b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2193",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 272.105,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40383,
    "c": 0.17448,
    "h": 303.6
  },
  "luminance": 0.05574
}

Semantic roles & 50–950 ramp

primary
#5E2193
secondary
#84BD53
accent
#E6418E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2193

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

Preview Lab → · Contrast checker → · Palette generator →

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