#5E1B8D#5E1B8D

#5E1B8D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.175 H 306.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5E1B8D
RGBrgb(94, 27, 141)
HSLhsl(275, 68%, 33%)
HSVhsv(275, 81%, 55%)
CMYKcmyk(33.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(26.98, 49.32, -49.43)
CIE-LCHlch(26.98, 69.82, 314.93°)
OKLaboklab(39.3% 0.1034 -0.1407)
OKLCHoklch(39.3% 0.175 306.3)
XYZxyz(9.8147, 5.0867, 25.6589)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B8D #4A8D1B
analogous
#251B8D #5E1B8D #8D1B83
triadic
#5E1B8D #8D5E1B #1B8D5E
tetradic
#5E1B8D #8D251B #4A8D1B #1B838D
square
#5E1B8D #8D251B #4A8D1B #1B838D
split-complementary
#5E1B8D #838D1B #1B8D25
monochromatic
#1A0726 #3C115A #5E1B8D #8025C0 #9E47DC

Accessibility & contrast

On white

10.41
#5E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B8D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B8D#FFFFFF#000000##FFFFFF
##5E1B8D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#563954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1b8d;
/* rgb */ color: rgb(94, 27, 141);
/* oklch */ color: oklch(39.3% 0.175 306.3);
Tailwind
colors: {
  custom: {
    50: '#9160af',
    500: '#5e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b8d;
$custom-light: #9160af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b8d",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 275.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39295,
    "c": 0.1746,
    "h": 306.3
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#5E1B8D
secondary
#77BD46
accent
#EB3D85
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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