#5E1885#5E1885

#5E1885 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.170 H 309.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5E1885
RGBrgb(94, 24, 133)
HSLhsl(279, 69%, 31%)
HSVhsv(279, 82%, 52%)
CMYKcmyk(29.3%, 82%, 0%, 47.8%)
CIE-LABlab(25.94, 48.59, -46.13)
CIE-LCHlch(25.94, 67.00, 316.49°)
OKLaboklab(38.36% 0.1079 -0.131)
OKLCHoklch(38.36% 0.17 309.5)
XYZxyz(9.1755, 4.7266, 22.6147)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1885 #3F8518
analogous
#271885 #5E1885 #851875
triadic
#5E1885 #855E18 #18855E
tetradic
#5E1885 #852718 #3F8518 #187585
square
#5E1885 #852718 #3F8518 #187585
split-complementary
#5E1885 #758518 #188527
monochromatic
#15051D #390F51 #5E1885 #8321B9 #A23CDC

Accessibility & contrast

On white

10.80
#5E1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1885
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1885#FFFFFF#000000##FFFFFF
##5E18851.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#58344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1885;
/* rgb */ color: rgb(94, 24, 133);
/* oklch */ color: oklch(38.4% 0.170 309.5);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5e1885',
    950: '#000000',
  },
}
SCSS
$custom: #5e1885;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1885",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 278.532,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38362,
    "c": 0.16973,
    "h": 309.5
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#5E1885
secondary
#6BB940
accent
#EC3C7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1885

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

Preview Lab → · Contrast checker → · Palette generator →

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