#5A489B#5A489B

#5A489B is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.3% C 0.130 H 290.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A489B
RGBrgb(90, 72, 155)
HSLhsl(253, 37%, 45%)
HSVhsv(253, 54%, 61%)
CMYKcmyk(41.9%, 53.5%, 0%, 39.2%)
CIE-LABlab(36.32, 28.41, -42.93)
CIE-LCHlch(36.32, 51.48, 303.49°)
OKLaboklab(46.27% 0.0453 -0.1219)
OKLCHoklch(46.27% 0.13 290.4)
XYZxyz(12.4486, 9.1746, 32.1190)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A489B #899B48
analogous
#48609B #5A489B #84489B
triadic
#5A489B #9B5A48 #489B5A
tetradic
#5A489B #9B4860 #899B48 #489B84
square
#5A489B #9B4860 #899B48 #489B84
split-complementary
#5A489B #9B8448 #609B48
monochromatic
#292147 #423571 #5A489B #7968B9 #9E91CC

Accessibility & contrast

On white

7.41
#5A489B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A489B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A489B
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A489B#FFFFFF#000000##FFFFFF
##5A489B1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579E
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#48596A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a489b;
/* rgb */ color: rgb(90, 72, 155);
/* oklch */ color: oklch(46.3% 0.130 290.4);
Tailwind
colors: {
  custom: {
    50: '#8d7bb9',
    500: '#5a489b',
    950: '#000000',
  },
}
SCSS
$custom: #5a489b;
$custom-light: #8d7bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a489b",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 155
  },
  "hsl": {
    "h": 253.012,
    "s": 36.564,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.13003,
    "h": 290.4
  },
  "luminance": 0.09175
}

Semantic roles & 50–950 ramp

primary
#5A489B
secondary
#ADB887
accent
#CD5BB4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5A489B

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

Preview Lab → · Contrast checker → · Palette generator →

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