#5E1C8F#5E1C8F

#5E1C8F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.176 H 305.5°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5E1C8F
RGBrgb(94, 28, 143)
HSLhsl(274, 67%, 34%)
HSVhsv(274, 80%, 56%)
CMYKcmyk(34.3%, 80.4%, 0%, 43.9%)
CIE-LABlab(27.28, 49.40, -50.18)
CIE-LCHlch(27.28, 70.42, 314.55°)
OKLaboklab(39.56% 0.102 -0.1429)
OKLCHoklch(39.56% 0.176 305.5)
XYZxyz(9.9882, 5.1934, 26.4575)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C8F #4D8F1C
analogous
#251C8F #5E1C8F #8F1C86
triadic
#5E1C8F #8F5E1C #1C8F5E
tetradic
#5E1C8F #8F251C #4D8F1C #1C868F
square
#5E1C8F #8F251C #4D8F1C #1C868F
split-complementary
#5E1C8F #868F1C #1C8F25
monochromatic
#1B0829 #3C125C #5E1C8F #8026C2 #9D4ADC

Accessibility & contrast

On white

10.30
#5E1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C8F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C8F#FFFFFF#000000##FFFFFF
##5E1C8F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#553A56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1c8f;
/* rgb */ color: rgb(94, 28, 143);
/* oklch */ color: oklch(39.6% 0.176 305.5);
Tailwind
colors: {
  custom: {
    50: '#9161b1',
    500: '#5e1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c8f;
$custom-light: #9161b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c8f",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 274.435,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39556,
    "c": 0.17561,
    "h": 305.5
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#5E1C8F
secondary
#7BBE49
accent
#EA3E87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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