#5E1C8D#5E1C8D

#5E1C8D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.174 H 306.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5E1C8D
RGBrgb(94, 28, 141)
HSLhsl(275, 67%, 33%)
HSVhsv(275, 80%, 55%)
CMYKcmyk(33.3%, 80.1%, 0%, 44.7%)
CIE-LABlab(27.11, 48.94, -49.22)
CIE-LCHlch(27.11, 69.40, 314.84°)
OKLaboklab(39.39% 0.1025 -0.1401)
OKLCHoklch(39.39% 0.174 306.2)
XYZxyz(9.8380, 5.1334, 25.6667)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C8D #4B8D1C
analogous
#251C8D #5E1C8D #8D1C83
triadic
#5E1C8D #8D5E1C #1C8D5E
tetradic
#5E1C8D #8D251C #4B8D1C #1C838D
square
#5E1C8D #8D251C #4B8D1C #1C838D
split-complementary
#5E1C8D #838D1C #1C8D25
monochromatic
#1A0827 #3C125A #5E1C8D #8026C0 #9E49DB

Accessibility & contrast

On white

10.36
#5E1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1C8D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C8D#FFFFFF#000000##FFFFFF
##5E1C8D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#563954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1c8d;
/* rgb */ color: rgb(94, 28, 141);
/* oklch */ color: oklch(39.4% 0.174 306.2);
Tailwind
colors: {
  custom: {
    50: '#9161af',
    500: '#5e1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c8d;
$custom-light: #9161af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c8d",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 275.044,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.17361,
    "h": 306.2
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#5E1C8D
secondary
#79BD48
accent
#EA3E85
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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