#5A289A#5A289A

#5A289A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.173 H 298.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A289A
RGBrgb(90, 40, 154)
HSLhsl(266, 59%, 38%)
HSVhsv(266, 74%, 60%)
CMYKcmyk(41.6%, 74%, 0%, 39.6%)
CIE-LABlab(29.47, 46.22, -53.39)
CIE-LCHlch(29.47, 70.62, 310.88°)
OKLaboklab(41.27% 0.0825 -0.1526)
OKLCHoklch(41.27% 0.173 298.4)
XYZxyz(10.8065, 6.0242, 31.1590)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A289A #689A28
analogous
#282F9A #5A289A #93289A
triadic
#5A289A #9A5A28 #289A5A
tetradic
#5A289A #9A282F #689A28 #289A93
square
#5A289A #9A282F #689A28 #289A93
split-complementary
#5A289A #9A9328 #2F9A28
monochromatic
#210F39 #3E1B69 #5A289A #7635CA #9765D7

Accessibility & contrast

On white

9.52
#5A289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A289A
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A289A#FFFFFF#000000##FFFFFF
##5A289A1.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4A455F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a289a;
/* rgb */ color: rgb(90, 40, 154);
/* oklch */ color: oklch(41.3% 0.173 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5a289a',
    950: '#000000',
  },
}
SCSS
$custom: #5a289a;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a289a",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 266.316,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41268,
    "c": 0.17345,
    "h": 298.4
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#5A289A
secondary
#95BD61
accent
#E2469D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A289A

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

Preview Lab → · Contrast checker → · Palette generator →

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