#5A2B8A#5A2B8A

#5A2B8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.151 H 302.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5A2B8A
RGBrgb(90, 43, 138)
HSLhsl(270, 52%, 35%)
HSVhsv(270, 69%, 54%)
CMYKcmyk(34.8%, 68.8%, 0%, 45.9%)
CIE-LABlab(28.74, 40.56, -44.74)
CIE-LCHlch(28.74, 60.39, 312.19°)
OKLaboklab(40.35% 0.0821 -0.1272)
OKLCHoklch(40.35% 0.151 302.8)
XYZxyz(9.6667, 5.7364, 24.6378)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B8A #5B8A2B
analogous
#2B2C8A #5A2B8A #892B8A
triadic
#5A2B8A #8A5A2B #2B8A5A
tetradic
#5A2B8A #8A2B2C #5B8A2B #2B8A89
square
#5A2B8A #8A2B2C #5B8A2B #2B8A89
split-complementary
#5A2B8A #8A892B #2C8A2B
monochromatic
#1D0E2D #3C1C5B #5A2B8A #783AB9 #9761CE

Accessibility & contrast

On white

9.78
#5A2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B8A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B8A#FFFFFF#000000##FFFFFF
##5A2B8A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#014388
Tritanopia (blue-blind)
#504057
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2b8a;
/* rgb */ color: rgb(90, 43, 138);
/* oklch */ color: oklch(40.3% 0.151 302.8);
Tailwind
colors: {
  custom: {
    50: '#8d68ad',
    500: '#5a2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b8a;
$custom-light: #8d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b8a",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 269.684,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.15135,
    "h": 302.8
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#5A2B8A
secondary
#89B45D
accent
#DC4C95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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