#5B2299#5B2299

#5B2299 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.179 H 300.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5B2299
RGBrgb(91, 34, 153)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.5%, 77.8%, 0%, 40%)
CIE-LABlab(28.56, 48.87, -54.27)
CIE-LCHlch(28.56, 73.03, 312.00°)
OKLaboklab(40.63% 0.0897 -0.1551)
OKLCHoklch(40.63% 0.179 300)
XYZxyz(10.6347, 5.6680, 30.6646)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2299 #609922
analogous
#222599 #5B2299 #972299
triadic
#5B2299 #995B22 #22995B
tetradic
#5B2299 #992225 #609922 #229997
square
#5B2299 #992225 #609922 #229997
split-complementary
#5B2299 #999722 #259922
monochromatic
#1F0C35 #3D1767 #5B2299 #792DCB #985BDB

Accessibility & contrast

On white

9.84
#5B2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2299
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2299#FFFFFF#000000##FFFFFF
##5B22991.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2299;
/* rgb */ color: rgb(91, 34, 153);
/* oklch */ color: oklch(40.6% 0.179 300.0);
Tailwind
colors: {
  custom: {
    50: '#9064b8',
    500: '#5b2299',
    950: '#000000',
  },
}
SCSS
$custom: #5b2299;
$custom-light: #9064b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2299",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 268.739,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40626,
    "c": 0.17917,
    "h": 300
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#5B2299
secondary
#8EBF58
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2299

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

Preview Lab → · Contrast checker → · Palette generator →

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