#5B1A97#5B1A97

#5B1A97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.185 H 301.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5B1A97
RGBrgb(91, 26, 151)
HSLhsl(271, 71%, 35%)
HSVhsv(271, 83%, 59%)
CMYKcmyk(39.7%, 82.8%, 0%, 40.8%)
CIE-LABlab(27.29, 51.54, -55.12)
CIE-LCHlch(27.29, 75.46, 313.08°)
OKLaboklab(39.69% 0.0967 -0.1575)
OKLCHoklch(39.69% 0.185 301.6)
XYZxyz(10.2683, 5.1972, 29.7343)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A97 #56971A
analogous
#1D1A97 #5B1A97 #971A95
triadic
#5B1A97 #975B1A #1A975B
tetradic
#5B1A97 #971D1A #56971A #1A9597
square
#5B1A97 #971D1A #56971A #1A9597
split-complementary
#5B1A97 #95971A #1A971D
monochromatic
#1C082F #3C1163 #5B1A97 #7A23CB #994BE0

Accessibility & contrast

On white

10.30
#5B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A97
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A97#FFFFFF#000000##FFFFFF
##5B1A971.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#4E3D5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1a97;
/* rgb */ color: rgb(91, 26, 151);
/* oklch */ color: oklch(39.7% 0.185 301.6);
Tailwind
colors: {
  custom: {
    50: '#9060b7',
    500: '#5b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a97;
$custom-light: #9060b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a97",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 271.2,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39687,
    "c": 0.18485,
    "h": 301.6
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#5B1A97
secondary
#84C24B
accent
#ED3A90
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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