#5E1D8F#5E1D8F

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

Color values

HEX#5E1D8F
RGBrgb(94, 29, 143)
HSLhsl(274, 66%, 34%)
HSVhsv(274, 80%, 56%)
CMYKcmyk(34.3%, 79.7%, 0%, 43.9%)
CIE-LABlab(27.41, 49.02, -49.97)
CIE-LCHlch(27.41, 69.99, 314.45°)
OKLaboklab(39.65% 0.1012 -0.1423)
OKLCHoklch(39.65% 0.175 305.4)
XYZxyz(10.0123, 5.2417, 26.4656)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D8F #4E8F1D
analogous
#251D8F #5E1D8F #8F1D87
triadic
#5E1D8F #8F5E1D #1D8F5E
tetradic
#5E1D8F #8F251D #4E8F1D #1D878F
square
#5E1D8F #8F251D #4E8F1D #1D878F
split-complementary
#5E1D8F #878F1D #1D8F25
monochromatic
#1B0829 #3D135C #5E1D8F #7F27C2 #9D4CDB

Accessibility & contrast

On white

10.25
#5E1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D8F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D8F#FFFFFF#000000##FFFFFF
##5E1D8F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1d8f;
/* rgb */ color: rgb(94, 29, 143);
/* oklch */ color: oklch(39.6% 0.175 305.4);
Tailwind
colors: {
  custom: {
    50: '#9161b1',
    500: '#5e1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d8f;
$custom-light: #9161b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d8f",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 274.211,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39649,
    "c": 0.17459,
    "h": 305.4
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#5E1D8F
secondary
#7CBD4B
accent
#E93F88
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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