#5E1D93#5E1D93

#5E1D93 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.179 H 304.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5E1D93
RGBrgb(94, 29, 147)
HSLhsl(273, 67%, 35%)
HSVhsv(273, 80%, 58%)
CMYKcmyk(36.1%, 80.3%, 0%, 42.4%)
CIE-LABlab(27.75, 49.96, -51.89)
CIE-LCHlch(27.75, 72.03, 313.92°)
OKLaboklab(39.99% 0.1001 -0.1479)
OKLCHoklch(39.99% 0.179 304.1)
XYZxyz(10.3207, 5.3650, 28.0899)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D93 #52931D
analogous
#231D93 #5E1D93 #931D8D
triadic
#5E1D93 #935E1D #1D935E
tetradic
#5E1D93 #93231D #52931D #1D8D93
square
#5E1D93 #93231D #52931D #1D8D93
split-complementary
#5E1D93 #8D931D #1D9323
monochromatic
#1D092D #3D1360 #5E1D93 #7F27C6 #9C4EDC

Accessibility & contrast

On white

10.13
#5E1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D93
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D93#FFFFFF#000000##FFFFFF
##5E1D931.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#533C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1d93;
/* rgb */ color: rgb(94, 29, 147);
/* oklch */ color: oklch(40.0% 0.179 304.1);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5e1d93',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d93;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d93",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 273.051,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3999,
    "c": 0.17863,
    "h": 304.1
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#5E1D93
secondary
#80BF4D
accent
#EA3E8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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