#5E1C82#5E1C82

#5E1C82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.163 H 310.2°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5E1C82
RGBrgb(94, 28, 130)
HSLhsl(279, 65%, 31%)
HSVhsv(279, 78%, 51%)
CMYKcmyk(27.7%, 78.5%, 0%, 49%)
CIE-LABlab(26.22, 46.41, -43.79)
CIE-LCHlch(26.22, 63.81, 316.66°)
OKLaboklab(38.48% 0.1051 -0.1241)
OKLCHoklch(38.48% 0.163 310.2)
XYZxyz(9.0598, 4.8221, 21.5683)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C82 #40821C
analogous
#2B1C82 #5E1C82 #821C73
triadic
#5E1C82 #825E1C #1C825E
tetradic
#5E1C82 #822B1C #40821C #1C7382
square
#5E1C82 #822B1C #40821C #1C7382
split-complementary
#5E1C82 #73821C #1C822B
monochromatic
#15061D #3A1150 #5E1C82 #8227B4 #A242D6

Accessibility & contrast

On white

10.69
#5E1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C82
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C82#FFFFFF#000000##FFFFFF
##5E1C821.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#013F80
Tritanopia (blue-blind)
#59354E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1c82;
/* rgb */ color: rgb(94, 28, 130);
/* oklch */ color: oklch(38.5% 0.163 310.2);
Tailwind
colors: {
  custom: {
    50: '#9060a7',
    500: '#5e1c82',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c82;
$custom-light: #9060a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c82",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 278.824,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.16265,
    "h": 310.2
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#5E1C82
secondary
#6CB544
accent
#E8407B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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