#5B1B92#5B1B92

#5B1B92 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.179 H 303.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5B1B92
RGBrgb(91, 27, 146)
HSLhsl(272, 69%, 34%)
HSVhsv(272, 82%, 57%)
CMYKcmyk(37.7%, 81.5%, 0%, 42.7%)
CIE-LABlab(26.97, 49.98, -52.56)
CIE-LCHlch(26.97, 72.53, 313.56°)
OKLaboklab(39.33% 0.0975 -0.15)
OKLCHoklch(39.33% 0.179 303)
XYZxyz(9.8934, 5.0833, 27.6485)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B92 #52921B
analogous
#201B92 #5B1B92 #921B8E
triadic
#5B1B92 #925B1B #1B925B
tetradic
#5B1B92 #92201B #52921B #1B8E92
square
#5B1B92 #92201B #52921B #1B8E92
split-complementary
#5B1B92 #8E921B #1B9220
monochromatic
#1B082B #3B115E #5B1B92 #7B25C6 #994ADE

Accessibility & contrast

On white

10.41
#5B1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B92
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B92#FFFFFF#000000##FFFFFF
##5B1B921.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#4F3B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1b92;
/* rgb */ color: rgb(91, 27, 146);
/* oklch */ color: oklch(39.3% 0.179 303.0);
Tailwind
colors: {
  custom: {
    50: '#8f60b3',
    500: '#5b1b92',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b92;
$custom-light: #8f60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b92",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 272.269,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39329,
    "c": 0.17894,
    "h": 303
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#5B1B92
secondary
#80BF49
accent
#EC3C8D
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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