#5E2181#5E2181

#5E2181 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.156 H 310.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5E2181
RGBrgb(94, 33, 129)
HSLhsl(278, 59%, 32%)
HSVhsv(278, 74%, 51%)
CMYKcmyk(27.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(26.88, 44.07, -42.09)
CIE-LCHlch(26.88, 60.94, 316.32°)
OKLaboklab(38.93% 0.1003 -0.1192)
OKLCHoklch(38.93% 0.156 310.1)
XYZxyz(9.1216, 5.0526, 21.2593)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2181 #448121
analogous
#2E2181 #5E2181 #812174
triadic
#5E2181 #815E21 #21815E
tetradic
#5E2181 #812E21 #448121 #217481
square
#5E2181 #812E21 #448121 #217481
split-complementary
#5E2181 #748121 #21812E
monochromatic
#170820 #3A1550 #5E2181 #822DB2 #A04BD1

Accessibility & contrast

On white

10.45
#5E2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2181
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2181#FFFFFF#000000##FFFFFF
##5E21811.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#0D407F
Tritanopia (blue-blind)
#59374F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2181;
/* rgb */ color: rgb(94, 33, 129);
/* oklch */ color: oklch(38.9% 0.156 310.1);
Tailwind
colors: {
  custom: {
    50: '#8f62a6',
    500: '#5e2181',
    950: '#000000',
  },
}
SCSS
$custom: #5e2181;
$custom-light: #8f62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2181",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 278.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38927,
    "c": 0.15574,
    "h": 310.1
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#5E2181
secondary
#71B44A
accent
#E2457F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E2181

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

Preview Lab → · Contrast checker → · Palette generator →

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