#5E2197#5E2197

#5E2197 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.179 H 302.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5E2197
RGBrgb(94, 33, 151)
HSLhsl(271, 64%, 36%)
HSVhsv(271, 78%, 59%)
CMYKcmyk(37.7%, 78.1%, 0%, 40.8%)
CIE-LABlab(28.65, 49.32, -52.88)
CIE-LCHlch(28.65, 72.31, 313.00°)
OKLaboklab(40.72% 0.0956 -0.1509)
OKLCHoklch(40.72% 0.179 302.4)
XYZxyz(10.7445, 5.7017, 29.8066)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2197 #5A9721
analogous
#232197 #5E2197 #972195
triadic
#5E2197 #975E21 #21975E
tetradic
#5E2197 #972321 #5A9721 #219597
square
#5E2197 #972321 #5A9721 #219597
split-complementary
#5E2197 #959721 #219723
monochromatic
#1F0B33 #3F1665 #5E2197 #7D2CC9 #9B58DA

Accessibility & contrast

On white

9.81
#5E2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2197
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2197#FFFFFF#000000##FFFFFF
##5E21971.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#52405B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2197;
/* rgb */ color: rgb(94, 33, 151);
/* oklch */ color: oklch(40.7% 0.179 302.4);
Tailwind
colors: {
  custom: {
    50: '#9163b6',
    500: '#5e2197',
    950: '#000000',
  },
}
SCSS
$custom: #5e2197;
$custom-light: #9163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2197",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 271.017,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40723,
    "c": 0.17864,
    "h": 302.4
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#5E2197
secondary
#88BE55
accent
#E74191
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2197

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

Preview Lab → · Contrast checker → · Palette generator →

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