#5E2182#5E2182

#5E2182 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.157 H 309.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5E2182
RGBrgb(94, 33, 130)
HSLhsl(278, 60%, 32%)
HSVhsv(278, 75%, 51%)
CMYKcmyk(27.7%, 74.6%, 0%, 49%)
CIE-LABlab(26.96, 44.31, -42.60)
CIE-LCHlch(26.96, 61.46, 316.13°)
OKLaboklab(39.01% 0.1001 -0.1207)
OKLCHoklch(39.01% 0.157 309.7)
XYZxyz(9.1884, 5.0793, 21.6111)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2182 #458221
analogous
#2E2182 #5E2182 #822176
triadic
#5E2182 #825E21 #21825E
tetradic
#5E2182 #822E21 #458221 #217682
square
#5E2182 #822E21 #458221 #217682
split-complementary
#5E2182 #768221 #21822E
monochromatic
#170820 #3B1551 #5E2182 #812DB3 #A04CD2

Accessibility & contrast

On white

10.42
#5E2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2182
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2182#FFFFFF#000000##FFFFFF
##5E21821.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2182;
/* rgb */ color: rgb(94, 33, 130);
/* oklch */ color: oklch(39.0% 0.157 309.7);
Tailwind
colors: {
  custom: {
    50: '#9062a7',
    500: '#5e2182',
    950: '#000000',
  },
}
SCSS
$custom: #5e2182;
$custom-light: #9062a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2182",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 277.732,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39005,
    "c": 0.15678,
    "h": 309.7
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#5E2182
secondary
#72B44A
accent
#E34580
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E2182

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

Preview Lab → · Contrast checker → · Palette generator →

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