#5A2B60#5A2B60

#5A2B60 is a dark, moderate purple. Relative luminance 0.047; OKLCH L 37.5% C 0.103 H 323.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5A2B60
RGBrgb(90, 43, 96)
HSLhsl(293, 38%, 27%)
HSVhsv(293, 55%, 38%)
CMYKcmyk(6.2%, 55.2%, 0%, 62.4%)
CIE-LABlab(26.00, 30.44, -22.40)
CIE-LCHlch(26.00, 37.80, 323.65°)
OKLaboklab(37.48% 0.082 -0.0619)
OKLCHoklch(37.48% 0.103 323)
XYZxyz(7.1914, 4.7463, 11.6014)
Luminance0.0475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B60 #31602B
analogous
#402B60 #5A2B60 #602B4B
triadic
#5A2B60 #605A2B #2B605A
tetradic
#5A2B60 #60402B #31602B #2B4B60
square
#5A2B60 #60402B #31602B #2B4B60
split-complementary
#5A2B60 #4B602B #2B6040
monochromatic
#140915 #321836 #5A2B60 #823E8A #A753B2

Accessibility & contrast

On white

10.77
#5A2B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A2B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B60
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B60#FFFFFF#000000##FFFFFF
##5A2B601.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233A62
Deuteranopia (green-blind)
#323F5E
Tritanopia (blue-blind)
#5B3241
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a2b60;
/* rgb */ color: rgb(90, 43, 96);
/* oklch */ color: oklch(37.5% 0.103 323.0);
Tailwind
colors: {
  custom: {
    50: '#8a678d',
    500: '#5a2b60',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b60;
$custom-light: #8a678d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b60",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 96
  },
  "hsl": {
    "h": 293.208,
    "s": 38.129,
    "l": 27.255
  },
  "oklch": {
    "l": 0.37475,
    "c": 0.10276,
    "h": 323
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#5A2B60
secondary
#5C9255
accent
#CE5A67
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C060C
muted
#7D7A7D

Preview Lab

Preview with #5A2B60

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

Preview Lab → · Contrast checker → · Palette generator →

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