#5A2B68#5A2B68

#5A2B68 is a dark, moderate purple. Relative luminance 0.049; OKLCH L 38.0% C 0.112 H 317.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5A2B68
RGBrgb(90, 43, 104)
HSLhsl(286, 41%, 29%)
HSVhsv(286, 59%, 41%)
CMYKcmyk(13.5%, 58.7%, 0%, 59.2%)
CIE-LABlab(26.45, 32.23, -26.88)
CIE-LCHlch(26.45, 41.97, 320.17°)
OKLaboklab(37.96% 0.083 -0.0749)
OKLCHoklch(37.96% 0.112 317.9)
XYZxyz(7.5787, 4.9012, 13.6408)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B68 #39682B
analogous
#3C2B68 #5A2B68 #682B58
triadic
#5A2B68 #685A2B #2B685A
tetradic
#5A2B68 #683C2B #39682B #2B5868
square
#5A2B68 #683C2B #39682B #2B5868
split-complementary
#5A2B68 #58682B #2B683C
monochromatic
#130916 #35193D #5A2B68 #7F3D93 #A255B9

Accessibility & contrast

On white

10.60
#5A2B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A2B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B68
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B68#FFFFFF#000000##FFFFFF
##5A2B681.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3B6A
Deuteranopia (green-blind)
#2E4066
Tritanopia (blue-blind)
#5A3445
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2b68;
/* rgb */ color: rgb(90, 43, 104);
/* oklch */ color: oklch(38.0% 0.112 317.9);
Tailwind
colors: {
  custom: {
    50: '#8a6793',
    500: '#5a2b68',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b68;
$custom-light: #8a6793;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b68",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 104
  },
  "hsl": {
    "h": 286.23,
    "s": 41.497,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37955,
    "c": 0.11174,
    "h": 317.9
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#5A2B68
secondary
#659A55
accent
#D15673
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5A2B68

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

Preview Lab → · Contrast checker → · Palette generator →

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