#5A285E#5A285E

#5A285E is a dark, moderate purple. Relative luminance 0.045; OKLCH L 36.9% C 0.106 H 324.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5A285E
RGBrgb(90, 40, 94)
HSLhsl(296, 40%, 26%)
HSVhsv(296, 57%, 37%)
CMYKcmyk(4.3%, 57.4%, 0%, 63.1%)
CIE-LABlab(25.26, 31.70, -22.26)
CIE-LCHlch(25.26, 38.73, 324.92°)
OKLaboklab(36.9% 0.0864 -0.0614)
OKLCHoklch(36.9% 0.106 324.6)
XYZxyz(6.9954, 4.4998, 11.0876)
Luminance0.0450 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A285E #2C5E28
analogous
#3F285E #5A285E #5E2847
triadic
#5A285E #5E5A28 #285E5A
tetradic
#5A285E #5E3F28 #2C5E28 #28475E
square
#5A285E #5E3F28 #2C5E28 #28475E
split-complementary
#5A285E #475E28 #285E3F
monochromatic
#150915 #311633 #5A285E #833A89 #AC4DB3

Accessibility & contrast

On white

11.05
#5A285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A285E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A285E#FFFFFF#000000##FFFFFF
##5A285E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213860
Deuteranopia (green-blind)
#313E5C
Tritanopia (blue-blind)
#5C2F3F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a285e;
/* rgb */ color: rgb(90, 40, 94);
/* oklch */ color: oklch(36.9% 0.106 324.6);
Tailwind
colors: {
  custom: {
    50: '#8a658c',
    500: '#5a285e',
    950: '#000000',
  },
}
SCSS
$custom: #5a285e;
$custom-light: #8a658c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a285e",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 295.556,
    "s": 40.299,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.10602,
    "h": 324.6
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#5A285E
secondary
#569151
accent
#D05861
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C060C
muted
#7D7A7D

Preview Lab

Preview with #5A285E

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

Preview Lab → · Contrast checker → · Palette generator →

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