#5A2A67#5A2A67

#5A2A67 is a dark, moderate purple. Relative luminance 0.048; OKLCH L 37.7% C 0.112 H 318.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2A67
RGBrgb(90, 42, 103)
HSLhsl(287, 42%, 28%)
HSVhsv(287, 59%, 40%)
CMYKcmyk(12.6%, 59.2%, 0%, 59.6%)
CIE-LABlab(26.18, 32.56, -26.66)
CIE-LCHlch(26.18, 42.08, 320.69°)
OKLaboklab(37.74% 0.0844 -0.0742)
OKLCHoklch(37.74% 0.112 318.7)
XYZxyz(7.4923, 4.8092, 13.3629)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A67 #37672A
analogous
#3B2A67 #5A2A67 #672A55
triadic
#5A2A67 #675A2A #2A675A
tetradic
#5A2A67 #673B2A #37672A #2A5567
square
#5A2A67 #673B2A #37672A #2A5567
split-complementary
#5A2A67 #55672A #2A673B
monochromatic
#130916 #34183C #5A2A67 #803C92 #A353B9

Accessibility & contrast

On white

10.70
#5A2A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A2A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A67
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A67#FFFFFF#000000##FFFFFF
##5A2A671.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3B69
Deuteranopia (green-blind)
#2D4065
Tritanopia (blue-blind)
#5A3344
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a2a67;
/* rgb */ color: rgb(90, 42, 103);
/* oklch */ color: oklch(37.7% 0.112 318.7);
Tailwind
colors: {
  custom: {
    50: '#8a6693',
    500: '#5a2a67',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a67;
$custom-light: #8a6693;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a67",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 287.213,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.11235,
    "h": 318.7
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#5A2A67
secondary
#629954
accent
#D25670
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5A2A67

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

Preview Lab → · Contrast checker → · Palette generator →

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