#5E1B9C#5E1B9C

#5E1B9C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.189 H 301.5°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E1B9C
RGBrgb(94, 27, 156)
HSLhsl(271, 70%, 36%)
HSVhsv(271, 83%, 61%)
CMYKcmyk(39.7%, 82.7%, 0%, 38.8%)
CIE-LABlab(28.28, 52.84, -56.54)
CIE-LCHlch(28.28, 77.38, 313.06°)
OKLaboklab(40.61% 0.099 -0.1616)
OKLCHoklch(40.61% 0.189 301.5)
XYZxyz(11.0073, 5.5638, 31.9401)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B9C #599C1B
analogous
#1D1B9C #5E1B9C #9C1B99
triadic
#5E1B9C #9C5E1B #1B9C5E
tetradic
#5E1B9C #9C1D1B #599C1B #1B999C
square
#5E1B9C #9C1D1B #599C1B #1B999C
split-complementary
#5E1B9C #999C1B #1B9C1D
monochromatic
#1F0934 #3F1268 #5E1B9C #7D24D0 #9B51E1

Accessibility & contrast

On white

9.94
#5E1B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E1B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B9C
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B9C#FFFFFF#000000##FFFFFF
##5E1B9C1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#50405D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1b9c;
/* rgb */ color: rgb(94, 27, 156);
/* oklch */ color: oklch(40.6% 0.189 301.5);
Tailwind
colors: {
  custom: {
    50: '#9261ba',
    500: '#5e1b9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b9c;
$custom-light: #9261ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b9c",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 271.163,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40605,
    "c": 0.18948,
    "h": 301.5
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#5E1B9C
secondary
#87C34F
accent
#ED3B90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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