#5E1D9F#5E1D9F

#5E1D9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.191 H 300.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5E1D9F
RGBrgb(94, 29, 159)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(40.9%, 81.8%, 0%, 37.6%)
CIE-LABlab(28.80, 52.83, -57.52)
CIE-LCHlch(28.80, 78.10, 312.57°)
OKLaboklab(41.05% 0.0965 -0.1645)
OKLCHoklch(41.05% 0.191 300.4)
XYZxyz(11.3119, 5.7615, 33.3103)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D9F #5E9F1D
analogous
#1D1D9F #5E1D9F #9F1D9F
triadic
#5E1D9F #9F5E1D #1D9F5E
tetradic
#5E1D9F #9F1D1D #5E9F1D #1D9F9F
square
#5E1D9F #9F1D1D #5E9F1D #1D9F9F
split-complementary
#5E1D9F #9F9F1D #1D9F1D
monochromatic
#210A37 #3F146B #5E1D9F #7D26D3 #9B56E0

Accessibility & contrast

On white

9.76
#5E1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D9F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D9F#FFFFFF#000000##FFFFFF
##5E1D9F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4F425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e1d9f;
/* rgb */ color: rgb(94, 29, 159);
/* oklch */ color: oklch(41.0% 0.191 300.4);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5e1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d9f;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d9f",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 270,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41047,
    "c": 0.19072,
    "h": 300.4
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#5E1D9F
secondary
#8CC454
accent
#EC3C94
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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