#5A296A#5A296A

#5A296A is a dark, moderate purple. Relative luminance 0.048; OKLCH L 37.8% C 0.117 H 317.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5A296A
RGBrgb(90, 41, 106)
HSLhsl(285, 44%, 29%)
HSVhsv(285, 61%, 42%)
CMYKcmyk(15.1%, 61.3%, 0%, 58.4%)
CIE-LABlab(26.16, 33.79, -28.64)
CIE-LCHlch(26.16, 44.29, 319.72°)
OKLaboklab(37.78% 0.086 -0.08)
OKLCHoklch(37.78% 0.117 317.1)
XYZxyz(7.6105, 4.8004, 14.1586)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A296A #396A29
analogous
#3A296A #5A296A #6A295A
triadic
#5A296A #6A5A29 #296A5A
tetradic
#5A296A #6A3A29 #396A29 #295A6A
square
#5A296A #6A3A29 #396A29 #295A6A
split-complementary
#5A296A #5A6A29 #296A3A
monochromatic
#130916 #35183E #5A296A #7F3A96 #A252BC

Accessibility & contrast

On white

10.71
#5A296A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A296A
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A296A#FFFFFF#000000##FFFFFF
##5A296A1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6C
Deuteranopia (green-blind)
#2B3F68
Tritanopia (blue-blind)
#593445
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a296a;
/* rgb */ color: rgb(90, 41, 106);
/* oklch */ color: oklch(37.8% 0.117 317.1);
Tailwind
colors: {
  custom: {
    50: '#8b6695',
    500: '#5a296a',
    950: '#000000',
  },
}
SCSS
$custom: #5a296a;
$custom-light: #8b6695;
$custom-dark: #000000;
JSON
{
  "hex": "#5a296a",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 106
  },
  "hsl": {
    "h": 285.231,
    "s": 44.218,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.11744,
    "h": 317.1
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

primary
#5A296A
secondary
#659C52
accent
#D45473
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5A296A

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

Preview Lab → · Contrast checker → · Palette generator →

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