#5E2188#5E2188

#5E2188 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.163 H 307.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5E2188
RGBrgb(94, 33, 136)
HSLhsl(276, 61%, 33%)
HSVhsv(276, 76%, 53%)
CMYKcmyk(30.9%, 75.7%, 0%, 46.7%)
CIE-LABlab(27.42, 45.71, -45.60)
CIE-LCHlch(27.42, 64.57, 315.07°)
OKLaboklab(39.48% 0.099 -0.1295)
OKLCHoklch(39.48% 0.163 307.4)
XYZxyz(9.6029, 5.2451, 23.7943)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2188 #4B8821
analogous
#2A2188 #5E2188 #88217E
triadic
#5E2188 #885E21 #21885E
tetradic
#5E2188 #882A21 #4B8821 #217E88
square
#5E2188 #882A21 #4B8821 #217E88
split-complementary
#5E2188 #7E8821 #21882A
monochromatic
#1A0925 #3C1557 #5E2188 #802DB9 #9E4FD4

Accessibility & contrast

On white

10.25
#5E2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2188
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2188#FFFFFF#000000##FFFFFF
##5E21881.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#573A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2188;
/* rgb */ color: rgb(94, 33, 136);
/* oklch */ color: oklch(39.5% 0.163 307.4);
Tailwind
colors: {
  custom: {
    50: '#9063ab',
    500: '#5e2188',
    950: '#000000',
  },
}
SCSS
$custom: #5e2188;
$custom-light: #9063ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2188",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 275.534,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39478,
    "c": 0.16302,
    "h": 307.4
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#5E2188
secondary
#79B84D
accent
#E44485
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2188

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

Preview Lab → · Contrast checker → · Palette generator →

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