#5E1886#5E1886

#5E1886 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.171 H 309.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5E1886
RGBrgb(94, 24, 134)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(29.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(26.02, 48.81, -46.62)
CIE-LCHlch(26.02, 67.50, 316.31°)
OKLaboklab(38.45% 0.1077 -0.1324)
OKLCHoklch(38.45% 0.171 309.1)
XYZxyz(9.2449, 4.7544, 22.9803)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1886 #408618
analogous
#271886 #5E1886 #861877
triadic
#5E1886 #865E18 #18865E
tetradic
#5E1886 #862718 #408618 #187786
square
#5E1886 #862718 #408618 #187786
split-complementary
#5E1886 #778618 #188627
monochromatic
#15051E #3A0F52 #5E1886 #8221BA #A23CDC

Accessibility & contrast

On white

10.76
#5E1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1886
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1886#FFFFFF#000000##FFFFFF
##5E18861.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#583450
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1886;
/* rgb */ color: rgb(94, 24, 134);
/* oklch */ color: oklch(38.4% 0.171 309.1);
Tailwind
colors: {
  custom: {
    50: '#905faa',
    500: '#5e1886',
    950: '#000000',
  },
}
SCSS
$custom: #5e1886;
$custom-light: #905faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1886",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 278.182,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38445,
    "c": 0.1707,
    "h": 309.1
  },
  "luminance": 0.04754
}

Semantic roles & 50–950 ramp

primary
#5E1886
secondary
#6CBA40
accent
#EC3B7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1886

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

Preview Lab → · Contrast checker → · Palette generator →

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