#5E1B83#5E1B83

#5E1B83 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.165 H 310.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5E1B83
RGBrgb(94, 27, 131)
HSLhsl(279, 66%, 31%)
HSVhsv(279, 79%, 51%)
CMYKcmyk(28.2%, 79.4%, 0%, 48.6%)
CIE-LABlab(26.16, 47.03, -44.51)
CIE-LCHlch(26.16, 64.75, 316.57°)
OKLaboklab(38.47% 0.1058 -0.1263)
OKLCHoklch(38.47% 0.165 310)
XYZxyz(9.1039, 4.8024, 21.9157)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B83 #40831B
analogous
#2A1B83 #5E1B83 #831B74
triadic
#5E1B83 #835E1B #1B835E
tetradic
#5E1B83 #832A1B #40831B #1B7483
square
#5E1B83 #832A1B #40831B #1B7483
split-complementary
#5E1B83 #74831B #1B832A
monochromatic
#15061E #3A1150 #5E1B83 #8225B6 #A241D8

Accessibility & contrast

On white

10.71
#5E1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B83
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B83#FFFFFF#000000##FFFFFF
##5E1B831.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#59344E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1b83;
/* rgb */ color: rgb(94, 27, 131);
/* oklch */ color: oklch(38.5% 0.165 310.0);
Tailwind
colors: {
  custom: {
    50: '#9060a8',
    500: '#5e1b83',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b83;
$custom-light: #9060a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b83",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 278.654,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38468,
    "c": 0.16473,
    "h": 310
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#5E1B83
secondary
#6CB643
accent
#E93F7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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