#5B1C8B#5B1C8B

#5B1C8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.171 H 305.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5B1C8B
RGBrgb(91, 28, 139)
HSLhsl(274, 66%, 33%)
HSVhsv(274, 80%, 55%)
CMYKcmyk(34.5%, 79.9%, 0%, 45.5%)
CIE-LABlab(26.50, 47.93, -48.99)
CIE-LCHlch(26.50, 68.54, 314.38°)
OKLaboklab(38.82% 0.0987 -0.1395)
OKLCHoklch(38.82% 0.171 305.3)
XYZxyz(9.3888, 4.9188, 24.8759)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C8B #4C8B1C
analogous
#231C8B #5B1C8B #8B1C83
triadic
#5B1C8B #8B5B1C #1C8B5B
tetradic
#5B1C8B #8B231C #4C8B1C #1C838B
square
#5B1C8B #8B231C #4C8B1C #1C838B
split-complementary
#5B1C8B #838B1C #1C8B23
monochromatic
#180725 #3A1258 #5B1C8B #7C26BE #9B47DA

Accessibility & contrast

On white

10.59
#5B1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C8B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C8B#FFFFFF#000000##FFFFFF
##5B1C8B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#523953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1c8b;
/* rgb */ color: rgb(91, 28, 139);
/* oklch */ color: oklch(38.8% 0.171 305.3);
Tailwind
colors: {
  custom: {
    50: '#8f60ae',
    500: '#5b1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c8b;
$custom-light: #8f60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c8b",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 274.054,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38815,
    "c": 0.17087,
    "h": 305.3
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#5B1C8B
secondary
#7ABC47
accent
#E93E88
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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