#5B1B7E#5B1B7E

#5B1B7E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.159 H 310.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5B1B7E
RGBrgb(91, 27, 126)
HSLhsl(279, 65%, 30%)
HSVhsv(279, 79%, 49%)
CMYKcmyk(27.8%, 78.6%, 0%, 50.6%)
CIE-LABlab(25.30, 45.31, -42.78)
CIE-LCHlch(25.30, 62.31, 316.65°)
OKLaboklab(37.64% 0.1026 -0.1213)
OKLCHoklch(37.64% 0.159 310.2)
XYZxyz(8.4715, 4.5146, 20.1597)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B7E #3E7E1B
analogous
#2A1B7E #5B1B7E #7E1B6F
triadic
#5B1B7E #7E5B1B #1B7E5B
tetradic
#5B1B7E #7E2A1B #3E7E1B #1B6F7E
square
#5B1B7E #7E2A1B #3E7E1B #1B6F7E
split-complementary
#5B1B7E #6F7E1B #1B7E2A
monochromatic
#120519 #37104C #5B1B7E #7F26B0 #A03ED6

Accessibility & contrast

On white

11.04
#5B1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1B7E
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B7E#FFFFFF#000000##FFFFFF
##5B1B7E1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#013D7C
Tritanopia (blue-blind)
#56334C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1b7e;
/* rgb */ color: rgb(91, 27, 126);
/* oklch */ color: oklch(37.6% 0.159 310.2);
Tailwind
colors: {
  custom: {
    50: '#8d5fa4',
    500: '#5b1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b7e;
$custom-light: #8d5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b7e",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 278.788,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.37642,
    "c": 0.15884,
    "h": 310.2
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#5B1B7E
secondary
#6AB243
accent
#E8407B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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