#5E1B85#5E1B85

#5E1B85 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.167 H 309.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5E1B85
RGBrgb(94, 27, 133)
HSLhsl(278, 66%, 31%)
HSVhsv(278, 80%, 52%)
CMYKcmyk(29.3%, 79.7%, 0%, 47.8%)
CIE-LABlab(26.32, 47.48, -45.51)
CIE-LCHlch(26.32, 65.77, 316.22°)
OKLaboklab(38.63% 0.1054 -0.1292)
OKLCHoklch(38.63% 0.167 309.2)
XYZxyz(9.2408, 4.8572, 22.6365)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B85 #42851B
analogous
#291B85 #5E1B85 #851B77
triadic
#5E1B85 #855E1B #1B855E
tetradic
#5E1B85 #85291B #42851B #1B7785
square
#5E1B85 #85291B #42851B #1B7785
split-complementary
#5E1B85 #77851B #1B8529
monochromatic
#16061F #3A1152 #5E1B85 #8225B8 #A142D9

Accessibility & contrast

On white

10.65
#5E1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B85
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B85#FFFFFF#000000##FFFFFF
##5E1B851.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#583550
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1b85;
/* rgb */ color: rgb(94, 27, 133);
/* oklch */ color: oklch(38.6% 0.167 309.2);
Tailwind
colors: {
  custom: {
    50: '#9060a9',
    500: '#5e1b85',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b85;
$custom-light: #9060a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b85",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 277.925,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.16671,
    "h": 309.2
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#5E1B85
secondary
#6EB844
accent
#E93F7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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