#5E1B8B#5E1B8B

#5E1B8B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.173 H 307.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5E1B8B
RGBrgb(94, 27, 139)
HSLhsl(276, 67%, 33%)
HSVhsv(276, 81%, 55%)
CMYKcmyk(32.4%, 80.6%, 0%, 45.5%)
CIE-LABlab(26.81, 48.85, -48.46)
CIE-LCHlch(26.81, 68.81, 315.23°)
OKLaboklab(39.13% 0.1039 -0.1379)
OKLCHoklch(39.13% 0.173 307)
XYZxyz(9.6672, 5.0277, 24.8823)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B8B #488B1B
analogous
#261B8B #5E1B8B #8B1B80
triadic
#5E1B8B #8B5E1B #1B8B5E
tetradic
#5E1B8B #8B261B #488B1B #1B808B
square
#5E1B8B #8B261B #488B1B #1B808B
split-complementary
#5E1B8B #808B1B #1B8B26
monochromatic
#190725 #3B1158 #5E1B8B #8125BE #9F45DB

Accessibility & contrast

On white

10.47
#5E1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B8B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B8B#FFFFFF#000000##FFFFFF
##5E1B8B1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#563853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1b8b;
/* rgb */ color: rgb(94, 27, 139);
/* oklch */ color: oklch(39.1% 0.173 307.0);
Tailwind
colors: {
  custom: {
    50: '#9160ae',
    500: '#5e1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b8b;
$custom-light: #9160ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b8b",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 275.893,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39126,
    "c": 0.17263,
    "h": 307
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#5E1B8B
secondary
#75BC45
accent
#EA3D83
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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