#5B1B94#5B1B94

#5B1B94 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.181 H 302.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1B94
RGBrgb(91, 27, 148)
HSLhsl(272, 69%, 34%)
HSVhsv(272, 82%, 58%)
CMYKcmyk(38.5%, 81.8%, 0%, 42%)
CIE-LABlab(27.15, 50.46, -53.51)
CIE-LCHlch(27.15, 73.55, 313.32°)
OKLaboklab(39.51% 0.0969 -0.1528)
OKLCHoklch(39.51% 0.181 302.4)
XYZxyz(10.0503, 5.1461, 28.4750)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B94 #54941B
analogous
#1F1B94 #5B1B94 #941B91
triadic
#5B1B94 #945B1B #1B945B
tetradic
#5B1B94 #941F1B #54941B #1B9194
square
#5B1B94 #941F1B #54941B #1B9194
split-complementary
#5B1B94 #91941B #1B941F
monochromatic
#1B082C #3B1260 #5B1B94 #7B24C8 #994BDE

Accessibility & contrast

On white

10.35
#5B1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5B1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B94
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B94#FFFFFF#000000##FFFFFF
##5B1B941.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#4F3C58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1b94;
/* rgb */ color: rgb(91, 27, 148);
/* oklch */ color: oklch(39.5% 0.181 302.4);
Tailwind
colors: {
  custom: {
    50: '#8f60b4',
    500: '#5b1b94',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b94;
$custom-light: #8f60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b94",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 271.736,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39505,
    "c": 0.18095,
    "h": 302.4
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#5B1B94
secondary
#82C04B
accent
#EC3C8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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