#5A488D#5A488D

#5A488D is a mid, moderate violet. Relative luminance 0.087; OKLCH L 45.4% C 0.110 H 293.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5A488D
RGBrgb(90, 72, 141)
HSLhsl(256, 32%, 42%)
HSVhsv(256, 49%, 55%)
CMYKcmyk(36.2%, 48.9%, 0%, 44.7%)
CIE-LABlab(35.46, 24.33, -35.80)
CIE-LCHlch(35.46, 43.29, 304.20°)
OKLaboklab(45.35% 0.044 -0.101)
OKLCHoklch(45.35% 0.11 293.5)
XYZxyz(11.3403, 8.7312, 26.2820)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A488D #7B8D48
analogous
#48598D #5A488D #7D488D
triadic
#5A488D #8D5A48 #488D5A
tetradic
#5A488D #8D4859 #7B8D48 #488D7D
square
#5A488D #8D4859 #7B8D48 #488D7D
split-complementary
#5A488D #8D7D48 #598D48
monochromatic
#261F3C #403364 #5A488D #7763AF #9A8BC4

Accessibility & contrast

On white

7.65
#5A488D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A488D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A488D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A488D#FFFFFF#000000##FFFFFF
##5A488D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#4E5564
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a488d;
/* rgb */ color: rgb(90, 72, 141);
/* oklch */ color: oklch(45.4% 0.110 293.5);
Tailwind
colors: {
  custom: {
    50: '#8b7baf',
    500: '#5a488d',
    950: '#000000',
  },
}
SCSS
$custom: #5a488d;
$custom-light: #8b7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a488d",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 141
  },
  "hsl": {
    "h": 255.652,
    "s": 32.394,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4535,
    "c": 0.11015,
    "h": 293.5
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#5A488D
secondary
#A4B081
accent
#C95FAD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5A488D

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

Preview Lab → · Contrast checker → · Palette generator →

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