#5E1C8C#5E1C8C

#5E1C8C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.173 H 306.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5E1C8C
RGBrgb(94, 28, 140)
HSLhsl(275, 67%, 33%)
HSVhsv(275, 80%, 55%)
CMYKcmyk(32.9%, 80%, 0%, 45.1%)
CIE-LABlab(27.03, 48.70, -48.73)
CIE-LCHlch(27.03, 68.90, 314.98°)
OKLaboklab(39.3% 0.1028 -0.1387)
OKLCHoklch(39.3% 0.173 306.6)
XYZxyz(9.7639, 5.1037, 25.2766)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C8C #4A8C1C
analogous
#261C8C #5E1C8C #8C1C82
triadic
#5E1C8C #8C5E1C #1C8C5E
tetradic
#5E1C8C #8C261C #4A8C1C #1C828C
square
#5E1C8C #8C261C #4A8C1C #1C828C
split-complementary
#5E1C8C #828C1C #1C8C26
monochromatic
#1A0826 #3C1259 #5E1C8C #8026BF #9E48DA

Accessibility & contrast

On white

10.39
#5E1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C8C
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C8C#FFFFFF#000000##FFFFFF
##5E1C8C1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1c8c;
/* rgb */ color: rgb(94, 28, 140);
/* oklch */ color: oklch(39.3% 0.173 306.6);
Tailwind
colors: {
  custom: {
    50: '#9161ae',
    500: '#5e1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c8c;
$custom-light: #9161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c8c",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 275.357,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.17262,
    "h": 306.6
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#5E1C8C
secondary
#77BC48
accent
#EA3E85
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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