#5E1B95#5E1B95

#5E1B95 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.183 H 303.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5E1B95
RGBrgb(94, 27, 149)
HSLhsl(273, 69%, 35%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(36.9%, 81.9%, 0%, 41.6%)
CIE-LABlab(27.66, 51.18, -53.26)
CIE-LCHlch(27.66, 73.87, 313.86°)
OKLaboklab(39.98% 0.1011 -0.152)
OKLCHoklch(39.98% 0.183 303.6)
XYZxyz(10.4316, 5.3335, 28.9078)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B95 #52951B
analogous
#211B95 #5E1B95 #951B8F
triadic
#5E1B95 #955E1B #1B955E
tetradic
#5E1B95 #95211B #52951B #1B8F95
square
#5E1B95 #95211B #52951B #1B8F95
split-complementary
#5E1B95 #8F951B #1B9521
monochromatic
#1D082D #3D1261 #5E1B95 #7F24C9 #9C4CDF

Accessibility & contrast

On white

10.16
#5E1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B95
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B95#FFFFFF#000000##FFFFFF
##5E1B951.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#533C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1b95;
/* rgb */ color: rgb(94, 27, 149);
/* oklch */ color: oklch(40.0% 0.183 303.6);
Tailwind
colors: {
  custom: {
    50: '#9161b5',
    500: '#5e1b95',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b95;
$custom-light: #9161b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b95",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 272.951,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39984,
    "c": 0.18254,
    "h": 303.6
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#5E1B95
secondary
#80C14B
accent
#EC3C8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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