#5B2D99#5B2D99

#5B2D99 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.166 H 298.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5B2D99
RGBrgb(91, 45, 153)
HSLhsl(266, 55%, 39%)
HSVhsv(266, 71%, 60%)
CMYKcmyk(40.5%, 70.6%, 0%, 40%)
CIE-LABlab(30.40, 43.66, -51.27)
CIE-LCHlch(30.40, 67.34, 310.42°)
OKLaboklab(41.93% 0.0791 -0.1463)
OKLCHoklch(41.93% 0.166 298.4)
XYZxyz(11.0011, 6.4007, 30.7867)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D99 #6B992D
analogous
#2D3599 #5B2D99 #912D99
triadic
#5B2D99 #995B2D #2D995B
tetradic
#5B2D99 #992D35 #6B992D #2D9991
square
#5B2D99 #992D35 #6B992D #2D9991
split-complementary
#5B2D99 #99912D #35992D
monochromatic
#23113A #3F1F6A #5B2D99 #773DC6 #996CD4

Accessibility & contrast

On white

9.21
#5B2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D99
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D99#FFFFFF#000000##FFFFFF
##5B2D991.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#4C475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2d99;
/* rgb */ color: rgb(91, 45, 153);
/* oklch */ color: oklch(41.9% 0.166 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ab8',
    500: '#5b2d99',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d99;
$custom-light: #8f6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d99",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 265.556,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41929,
    "c": 0.16634,
    "h": 298.4
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#5B2D99
secondary
#97BB67
accent
#DE4A9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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