#5B2099#5B2099

#5B2099 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.181 H 300.3°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5B2099
RGBrgb(91, 32, 153)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(40.5%, 79.1%, 0%, 40%)
CIE-LABlab(28.27, 49.71, -54.75)
CIE-LCHlch(28.27, 73.95, 312.24°)
OKLaboklab(40.42% 0.0914 -0.1565)
OKLCHoklch(40.42% 0.181 300.3)
XYZxyz(10.5792, 5.5570, 30.6461)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2099 #5E9920
analogous
#202299 #5B2099 #982099
triadic
#5B2099 #995B20 #20995B
tetradic
#5B2099 #992022 #5E9920 #209998
square
#5B2099 #992022 #5E9920 #209998
split-complementary
#5B2099 #999820 #229920
monochromatic
#1F0B34 #3D1566 #5B2099 #792BCC #9857DC

Accessibility & contrast

On white

9.95
#5B2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2099
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2099#FFFFFF#000000##FFFFFF
##5B20991.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#4D415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2099;
/* rgb */ color: rgb(91, 32, 153);
/* oklch */ color: oklch(40.4% 0.181 300.3);
Tailwind
colors: {
  custom: {
    50: '#9063b8',
    500: '#5b2099',
    950: '#000000',
  },
}
SCSS
$custom: #5b2099;
$custom-light: #9063b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2099",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 269.256,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40421,
    "c": 0.18123,
    "h": 300.3
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#5B2099
secondary
#8CC055
accent
#E83F96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2099

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

Preview Lab → · Contrast checker → · Palette generator →

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