#5E2187#5E2187

#5E2187 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.162 H 307.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5E2187
RGBrgb(94, 33, 135)
HSLhsl(276, 61%, 33%)
HSVhsv(276, 76%, 53%)
CMYKcmyk(30.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(27.34, 45.48, -45.10)
CIE-LCHlch(27.34, 64.05, 315.24°)
OKLaboklab(39.4% 0.0992 -0.128)
OKLCHoklch(39.4% 0.162 307.8)
XYZxyz(9.5322, 5.2168, 23.4218)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2187 #4A8721
analogous
#2B2187 #5E2187 #87217D
triadic
#5E2187 #875E21 #21875E
tetradic
#5E2187 #872B21 #4A8721 #217D87
square
#5E2187 #872B21 #4A8721 #217D87
split-complementary
#5E2187 #7D8721 #21872B
monochromatic
#1A0925 #3C1556 #5E2187 #802DB8 #9E4FD4

Accessibility & contrast

On white

10.28
#5E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2187
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2187#FFFFFF#000000##FFFFFF
##5E21871.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#573952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2187;
/* rgb */ color: rgb(94, 33, 135);
/* oklch */ color: oklch(39.4% 0.162 307.8);
Tailwind
colors: {
  custom: {
    50: '#9063ab',
    500: '#5e2187',
    950: '#000000',
  },
}
SCSS
$custom: #5e2187;
$custom-light: #9063ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2187",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 275.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39398,
    "c": 0.16198,
    "h": 307.8
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#5E2187
secondary
#77B74D
accent
#E44484
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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