#5A2B99#5A2B99

#5A2B99 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.169 H 298.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5A2B99
RGBrgb(90, 43, 153)
HSLhsl(266, 56%, 38%)
HSVhsv(266, 72%, 60%)
CMYKcmyk(41.2%, 71.9%, 0%, 40%)
CIE-LABlab(29.91, 44.48, -52.06)
CIE-LCHlch(29.91, 68.48, 310.51°)
OKLaboklab(41.56% 0.0797 -0.1487)
OKLCHoklch(41.56% 0.169 298.2)
XYZxyz(10.8286, 6.2012, 30.7572)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B99 #6A992B
analogous
#2B3399 #5A2B99 #912B99
triadic
#5A2B99 #995A2B #2B995A
tetradic
#5A2B99 #992B33 #6A992B #2B9991
square
#5A2B99 #992B33 #6A992B #2B9991
split-complementary
#5A2B99 #99912B #33992B
monochromatic
#221039 #3E1E69 #5A2B99 #763AC8 #9769D5

Accessibility & contrast

On white

9.37
#5A2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B99
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B99#FFFFFF#000000##FFFFFF
##5A2B991.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2b99;
/* rgb */ color: rgb(90, 43, 153);
/* oklch */ color: oklch(41.6% 0.169 298.2);
Tailwind
colors: {
  custom: {
    50: '#8e68b8',
    500: '#5a2b99',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b99;
$custom-light: #8e68b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b99",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 265.636,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41555,
    "c": 0.16871,
    "h": 298.2
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#5A2B99
secondary
#96BC64
accent
#DF489F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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