#5A2B89#5A2B89

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

Color values

HEX#5A2B89
RGBrgb(90, 43, 137)
HSLhsl(270, 52%, 35%)
HSVhsv(270, 69%, 54%)
CMYKcmyk(34.3%, 68.6%, 0%, 46.3%)
CIE-LABlab(28.66, 40.30, -44.24)
CIE-LCHlch(28.66, 59.84, 312.33°)
OKLaboklab(40.27% 0.0822 -0.1257)
OKLCHoklch(40.27% 0.15 303.2)
XYZxyz(9.5946, 5.7076, 24.2583)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B89 #5A892B
analogous
#2B2B89 #5A2B89 #892B89
triadic
#5A2B89 #895A2B #2B895A
tetradic
#5A2B89 #892B2B #5A892B #2B8989
square
#5A2B89 #892B2B #5A892B #2B8989
split-complementary
#5A2B89 #89892B #2B892B
monochromatic
#1D0E2C #3B1C5A #5A2B89 #793AB8 #9761CD

Accessibility & contrast

On white

9.81
#5A2B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A2B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B89
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B89#FFFFFF#000000##FFFFFF
##5A2B891.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#044387
Tritanopia (blue-blind)
#514056
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2b89;
/* rgb */ color: rgb(90, 43, 137);
/* oklch */ color: oklch(40.3% 0.150 303.2);
Tailwind
colors: {
  custom: {
    50: '#8d68ac',
    500: '#5a2b89',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b89;
$custom-light: #8d68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b89",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 52.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40267,
    "c": 0.15018,
    "h": 303.2
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#5A2B89
secondary
#88B35C
accent
#DC4C94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2B89

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

Preview Lab → · Contrast checker → · Palette generator →

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