#5B2999#5B2999

#5B2999 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.171 H 299.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B2999
RGBrgb(91, 41, 153)
HSLhsl(267, 58%, 38%)
HSVhsv(267, 73%, 60%)
CMYKcmyk(40.5%, 73.2%, 0%, 40%)
CIE-LABlab(29.69, 45.66, -52.43)
CIE-LCHlch(29.69, 69.52, 311.05°)
OKLaboklab(41.42% 0.0832 -0.1497)
OKLCHoklch(41.42% 0.171 299.1)
XYZxyz(10.8556, 6.1098, 30.7382)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2999 #679929
analogous
#292F99 #5B2999 #932999
triadic
#5B2999 #995B29 #29995B
tetradic
#5B2999 #99292F #679929 #299993
square
#5B2999 #99292F #679929 #299993
split-complementary
#5B2999 #999329 #2F9929
monochromatic
#220F38 #3E1C69 #5B2999 #7836C9 #9866D6

Accessibility & contrast

On white

9.45
#5B2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2999
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2999#FFFFFF#000000##FFFFFF
##5B29991.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#4C455E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2999;
/* rgb */ color: rgb(91, 41, 153);
/* oklch */ color: oklch(41.4% 0.171 299.1);
Tailwind
colors: {
  custom: {
    50: '#8f67b8',
    500: '#5b2999',
    950: '#000000',
  },
}
SCSS
$custom: #5b2999;
$custom-light: #8f67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2999",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 266.786,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.17128,
    "h": 299.1
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#5B2999
secondary
#94BC62
accent
#E1479C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2999

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

Preview Lab → · Contrast checker → · Palette generator →

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