#5A288D#5A288D

#5A288D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.159 H 302.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5A288D
RGBrgb(90, 40, 141)
HSLhsl(270, 56%, 35%)
HSVhsv(270, 72%, 55%)
CMYKcmyk(36.2%, 71.6%, 0%, 44.7%)
CIE-LABlab(28.42, 42.86, -47.12)
CIE-LCHlch(28.42, 63.69, 312.29°)
OKLaboklab(40.19% 0.085 -0.1341)
OKLCHoklch(40.19% 0.159 302.4)
XYZxyz(9.7818, 5.6143, 25.7625)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A288D #5B8D28
analogous
#28288D #5A288D #8C288D
triadic
#5A288D #8D5A28 #288D5A
tetradic
#5A288D #8D2828 #5B8D28 #288D8C
square
#5A288D #8D2828 #5B8D28 #288D8C
split-complementary
#5A288D #8D8C28 #288D28
monochromatic
#1D0D2E #3C1A5D #5A288D #7836BD #975ED1

Accessibility & contrast

On white

9.89
#5A288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A288D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A288D#FFFFFF#000000##FFFFFF
##5A288D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#4F4057
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a288d;
/* rgb */ color: rgb(90, 40, 141);
/* oklch */ color: oklch(40.2% 0.159 302.4);
Tailwind
colors: {
  custom: {
    50: '#8d66af',
    500: '#5a288d',
    950: '#000000',
  },
}
SCSS
$custom: #5a288d;
$custom-light: #8d66af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a288d",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 269.703,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40189,
    "c": 0.1588,
    "h": 302.4
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#5A288D
secondary
#89B75A
accent
#DF4995
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A288D

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

Preview Lab → · Contrast checker → · Palette generator →

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