#5E2198#5E2198

#5E2198 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.180 H 302.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5E2198
RGBrgb(94, 33, 152)
HSLhsl(271, 64%, 36%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(38.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(28.73, 49.56, -53.36)
CIE-LCHlch(28.73, 72.82, 312.89°)
OKLaboklab(40.81% 0.0953 -0.1523)
OKLCHoklch(40.81% 0.18 302)
XYZxyz(10.8261, 5.7344, 30.2362)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2198 #5B9821
analogous
#232198 #5E2198 #982197
triadic
#5E2198 #985E21 #21985E
tetradic
#5E2198 #982321 #5B9821 #219798
square
#5E2198 #982321 #5B9821 #219798
split-complementary
#5E2198 #979821 #219823
monochromatic
#200B33 #3F1666 #5E2198 #7D2CCA #9B59DB

Accessibility & contrast

On white

9.78
#5E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2198
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2198#FFFFFF#000000##FFFFFF
##5E21981.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#51405C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2198;
/* rgb */ color: rgb(94, 33, 152);
/* oklch */ color: oklch(40.8% 0.180 302.0);
Tailwind
colors: {
  custom: {
    50: '#9164b7',
    500: '#5e2198',
    950: '#000000',
  },
}
SCSS
$custom: #5e2198;
$custom-light: #9164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2198",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 270.756,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40809,
    "c": 0.17968,
    "h": 302
  },
  "luminance": 0.05734
}

Semantic roles & 50–950 ramp

primary
#5E2198
secondary
#89BF56
accent
#E74092
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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