#5A288F#5A288F

#5A288F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.161 H 301.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5A288F
RGBrgb(90, 40, 143)
HSLhsl(269, 56%, 36%)
HSVhsv(269, 72%, 56%)
CMYKcmyk(37.1%, 72%, 0%, 43.9%)
CIE-LABlab(28.58, 43.37, -48.10)
CIE-LCHlch(28.58, 64.76, 312.04°)
OKLaboklab(40.35% 0.0846 -0.137)
OKLCHoklch(40.35% 0.161 301.7)
XYZxyz(9.9320, 5.6744, 26.5533)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A288F #5D8F28
analogous
#282A8F #5A288F #8D288F
triadic
#5A288F #8F5A28 #288F5A
tetradic
#5A288F #8F282A #5D8F28 #288F8D
square
#5A288F #8F282A #5D8F28 #288F8D
split-complementary
#5A288F #8F8D28 #2A8F28
monochromatic
#1E0D2F #3C1B5F #5A288F #7835BF #975FD2

Accessibility & contrast

On white

9.84
#5A288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A288F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A288F#FFFFFF#000000##FFFFFF
##5A288F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#4F4158
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a288f;
/* rgb */ color: rgb(90, 40, 143);
/* oklch */ color: oklch(40.4% 0.161 301.7);
Tailwind
colors: {
  custom: {
    50: '#8d66b1',
    500: '#5a288f',
    950: '#000000',
  },
}
SCSS
$custom: #5a288f;
$custom-light: #8d66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a288f",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 269.126,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.16107,
    "h": 301.7
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#5A288F
secondary
#8BB85B
accent
#E04896
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A288F

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

Preview Lab → · Contrast checker → · Palette generator →

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