#5A477A#5A477A

#5A477A is a dark, moderate violet. Relative luminance 0.081; OKLCH L 44.0% C 0.084 H 300.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5A477A
RGBrgb(90, 71, 122)
HSLhsl(262, 26%, 38%)
HSVhsv(262, 42%, 48%)
CMYKcmyk(26.2%, 41.8%, 0%, 52.2%)
CIE-LABlab(34.16, 19.69, -26.14)
CIE-LCHlch(34.16, 32.73, 306.99°)
OKLaboklab(44.03% 0.0423 -0.0729)
OKLCHoklch(44.03% 0.084 300.1)
XYZxyz(9.9817, 8.0852, 19.4433)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A477A #677A47
analogous
#474D7A #5A477A #73477A
triadic
#5A477A #7A5A47 #477A5A
tetradic
#5A477A #7A474D #677A47 #477A73
square
#5A477A #7A474D #677A47 #477A73
split-complementary
#5A477A #7A7347 #4D7A47
monochromatic
#211A2D #3D3053 #5A477A #775EA1 #9784B7

Accessibility & contrast

On white

8.02
#5A477A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A477A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A477A
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A477A#FFFFFF#000000##FFFFFF
##5A477A1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507C
Deuteranopia (green-blind)
#3E5079
Tritanopia (blue-blind)
#54505A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a477a;
/* rgb */ color: rgb(90, 71, 122);
/* oklch */ color: oklch(44.0% 0.084 300.1);
Tailwind
colors: {
  custom: {
    50: '#8a7aa0',
    500: '#5a477a',
    950: '#000000',
  },
}
SCSS
$custom: #5a477a;
$custom-light: #8a7aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a477a",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 122
  },
  "hsl": {
    "h": 262.353,
    "s": 26.425,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44028,
    "c": 0.08424,
    "h": 300.1
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#5A477A
secondary
#94A37A
accent
#C365A0
background
#F8F7F9
surface
#F0EDF2
border
#CBC8CC
text
#0C090F
muted
#7D7B7E

Preview Lab

Preview with #5A477A

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

Preview Lab → · Contrast checker → · Palette generator →

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