#5B0E8E#5B0E8E

#5B0E8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.185 H 305.4°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5B0E8E
RGBrgb(91, 14, 142)
HSLhsl(276, 82%, 31%)
HSVhsv(276, 90%, 56%)
CMYKcmyk(35.9%, 90.1%, 0%, 44.3%)
CIE-LABlab(25.23, 53.11, -52.92)
CIE-LCHlch(25.23, 74.98, 315.10°)
OKLaboklab(38.02% 0.1075 -0.151)
OKLCHoklch(38.02% 0.185 305.4)
XYZxyz(9.3528, 4.4913, 25.9601)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E8E #418E0E
analogous
#1B0E8E #5B0E8E #8E0E81
triadic
#5B0E8E #8E5B0E #0E8E5B
tetradic
#5B0E8E #8E1B0E #418E0E #0E818E
square
#5B0E8E #8E1B0E #418E0E #0E818E
split-complementary
#5B0E8E #818E0E #0E8E1B
monochromatic
#14031F #370956 #5B0E8E #7F13C6 #9F2CEA

Accessibility & contrast

On white

11.06
#5B0E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B0E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0E8E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E8E#FFFFFF#000000##FFFFFF
##5B0E8E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#513553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b0e8e;
/* rgb */ color: rgb(91, 14, 142);
/* oklch */ color: oklch(38.0% 0.185 305.4);
Tailwind
colors: {
  custom: {
    50: '#8f5bb0',
    500: '#5b0e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e8e;
$custom-light: #8f5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e8e",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 142
  },
  "hsl": {
    "h": 276.094,
    "s": 82.051,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.18532,
    "h": 305.4
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#5B0E8E
secondary
#6DC335
accent
#F82F7F
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0411
muted
#7E7980

Preview Lab

Preview with #5B0E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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