#5A288B#5A288B

#5A288B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.157 H 303.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5A288B
RGBrgb(90, 40, 139)
HSLhsl(270, 55%, 35%)
HSVhsv(270, 71%, 55%)
CMYKcmyk(35.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(28.26, 42.35, -46.13)
CIE-LCHlch(28.26, 62.62, 312.55°)
OKLaboklab(40.03% 0.0853 -0.1312)
OKLCHoklch(40.03% 0.157 303)
XYZxyz(9.6344, 5.5553, 24.9858)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A288B #598B28
analogous
#29288B #5A288B #8B288A
triadic
#5A288B #8B5A28 #288B5A
tetradic
#5A288B #8B2928 #598B28 #288A8B
square
#5A288B #8B2928 #598B28 #288A8B
split-complementary
#5A288B #8A8B28 #288B29
monochromatic
#1C0D2C #3B1A5B #5A288B #7936BB #975DD0

Accessibility & contrast

On white

9.95
#5A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A288B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A288B#FFFFFF#000000##FFFFFF
##5A288B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#503F56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a288b;
/* rgb */ color: rgb(90, 40, 139);
/* oklch */ color: oklch(40.0% 0.157 303.0);
Tailwind
colors: {
  custom: {
    50: '#8d66ae',
    500: '#5a288b',
    950: '#000000',
  },
}
SCSS
$custom: #5a288b;
$custom-light: #8d66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a288b",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 270.303,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.15653,
    "h": 303
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#5A288B
secondary
#87B659
accent
#DF4993
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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