#5B0E8D#5B0E8D

#5B0E8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.184 H 305.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5B0E8D
RGBrgb(91, 14, 141)
HSLhsl(276, 82%, 30%)
HSVhsv(276, 90%, 55%)
CMYKcmyk(35.5%, 90.1%, 0%, 44.7%)
CIE-LABlab(25.14, 52.89, -52.45)
CIE-LCHlch(25.14, 74.49, 315.24°)
OKLaboklab(37.92% 0.1078 -0.1496)
OKLCHoklch(37.92% 0.184 305.8)
XYZxyz(9.2781, 4.4614, 25.5665)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E8D #408D0E
analogous
#1C0E8D #5B0E8D #8D0E7F
triadic
#5B0E8D #8D5B0E #0E8D5B
tetradic
#5B0E8D #8D1C0E #408D0E #0E7F8D
square
#5B0E8D #8D1C0E #408D0E #0E7F8D
split-complementary
#5B0E8D #7F8D0E #0E8D1C
monochromatic
#13031E #370855 #5B0E8D #7F14C5 #9F2BEA

Accessibility & contrast

On white

11.10
#5B0E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B0E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0E8D
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E8D#FFFFFF#000000##FFFFFF
##5B0E8D1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#523552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b0e8d;
/* rgb */ color: rgb(91, 14, 141);
/* oklch */ color: oklch(37.9% 0.184 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f5baf',
    500: '#5b0e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e8d;
$custom-light: #8f5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e8d",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 141
  },
  "hsl": {
    "h": 276.378,
    "s": 81.935,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.18441,
    "h": 305.8
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#5B0E8D
secondary
#6CC235
accent
#F8307F
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5B0E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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