#5E2185#5E2185

#5E2185 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.160 H 308.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5E2185
RGBrgb(94, 33, 133)
HSLhsl(277, 60%, 33%)
HSVhsv(277, 75%, 52%)
CMYKcmyk(29.3%, 75.2%, 0%, 47.8%)
CIE-LABlab(27.19, 45.01, -44.11)
CIE-LCHlch(27.19, 63.01, 315.58°)
OKLaboklab(39.24% 0.0996 -0.1251)
OKLCHoklch(39.24% 0.16 308.5)
XYZxyz(9.3927, 5.1610, 22.6871)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2185 #488521
analogous
#2C2185 #5E2185 #85217A
triadic
#5E2185 #855E21 #21855E
tetradic
#5E2185 #852C21 #488521 #217A85
square
#5E2185 #852C21 #488521 #217A85
split-complementary
#5E2185 #7A8521 #21852C
monochromatic
#190923 #3B1554 #5E2185 #812DB6 #9F4DD3

Accessibility & contrast

On white

10.33
#5E2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2185
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2185#FFFFFF#000000##FFFFFF
##5E21851.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#024183
Tritanopia (blue-blind)
#583851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2185;
/* rgb */ color: rgb(94, 33, 133);
/* oklch */ color: oklch(39.2% 0.160 308.5);
Tailwind
colors: {
  custom: {
    50: '#9063a9',
    500: '#5e2185',
    950: '#000000',
  },
}
SCSS
$custom: #5e2185;
$custom-light: #9063a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2185",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 276.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.1599,
    "h": 308.5
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#5E2185
secondary
#75B64C
accent
#E34482
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E2185

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

Preview Lab → · Contrast checker → · Palette generator →

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