#5A2D64#5A2D64

#5A2D64 is a dark, moderate purple. Relative luminance 0.050; OKLCH L 38.0% C 0.104 H 320.1°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5A2D64
RGBrgb(90, 45, 100)
HSLhsl(289, 38%, 28%)
HSVhsv(289, 55%, 39%)
CMYKcmyk(10%, 55%, 0%, 60.8%)
CIE-LABlab(26.65, 30.18, -23.98)
CIE-LCHlch(26.65, 38.55, 321.54°)
OKLaboklab(38.03% 0.0795 -0.0665)
OKLCHoklch(38.03% 0.104 320.1)
XYZxyz(7.4548, 4.9708, 12.6209)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D64 #37642D
analogous
#3E2D64 #5A2D64 #642D52
triadic
#5A2D64 #645A2D #2D645A
tetradic
#5A2D64 #643E2D #37642D #2D5264
square
#5A2D64 #643E2D #37642D #2D5264
split-complementary
#5A2D64 #52642D #2D643E
monochromatic
#130915 #341A3A #5A2D64 #80408E #A358B4

Accessibility & contrast

On white

10.53
#5A2D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D64
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D64#FFFFFF#000000##FFFFFF
##5A2D641.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233C66
Deuteranopia (green-blind)
#314162
Tritanopia (blue-blind)
#5B3544
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2d64;
/* rgb */ color: rgb(90, 45, 100);
/* oklch */ color: oklch(38.0% 0.104 320.1);
Tailwind
colors: {
  custom: {
    50: '#8a6890',
    500: '#5a2d64',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d64;
$custom-light: #8a6890;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d64",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 100
  },
  "hsl": {
    "h": 289.091,
    "s": 37.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38028,
    "c": 0.1036,
    "h": 320.1
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#5A2D64
secondary
#629657
accent
#CE5A6F
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C060C
muted
#7D7A7D

Preview Lab

Preview with #5A2D64

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

Preview Lab → · Contrast checker → · Palette generator →

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