#5A288E#5A288E

#5A288E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.160 H 302.0°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5A288E
RGBrgb(90, 40, 142)
HSLhsl(269, 56%, 36%)
HSVhsv(269, 72%, 56%)
CMYKcmyk(36.6%, 71.8%, 0%, 44.3%)
CIE-LABlab(28.50, 43.11, -47.61)
CIE-LCHlch(28.50, 64.23, 312.16°)
OKLaboklab(40.27% 0.0848 -0.1356)
OKLCHoklch(40.27% 0.16 302)
XYZxyz(9.8566, 5.6442, 26.1561)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A288E #5C8E28
analogous
#28298E #5A288E #8D288E
triadic
#5A288E #8E5A28 #288E5A
tetradic
#5A288E #8E2829 #5C8E28 #288E8D
square
#5A288E #8E2829 #5C8E28 #288E8D
split-complementary
#5A288E #8E8D28 #298E28
monochromatic
#1D0D2F #3C1B5E #5A288E #7835BE #975FD2

Accessibility & contrast

On white

9.86
#5A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A288E
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A288E#FFFFFF#000000##FFFFFF
##5A288E1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#4F4058
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a288e;
/* rgb */ color: rgb(90, 40, 142);
/* oklch */ color: oklch(40.3% 0.160 302.0);
Tailwind
colors: {
  custom: {
    50: '#8d66b0',
    500: '#5a288e',
    950: '#000000',
  },
}
SCSS
$custom: #5a288e;
$custom-light: #8d66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a288e",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 269.412,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4027,
    "c": 0.15994,
    "h": 302
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#5A288E
secondary
#8AB75B
accent
#DF4895
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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