#5A507A#5A507A

#5A507A is a mid, moderate violet. Relative luminance 0.093; OKLCH L 45.9% C 0.068 H 294.5°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A507A
RGBrgb(90, 80, 122)
HSLhsl(254, 21%, 40%)
HSVhsv(254, 34%, 48%)
CMYKcmyk(26.2%, 34.4%, 0%, 52.2%)
CIE-LABlab(36.59, 13.99, -22.35)
CIE-LCHlch(36.59, 26.37, 302.04°)
OKLaboklab(45.88% 0.0282 -0.062)
OKLCHoklch(45.88% 0.068 294.5)
XYZxyz(10.5971, 9.3160, 19.6484)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A507A #707A50
analogous
#505B7A #5A507A #6F507A
triadic
#5A507A #7A5A50 #507A5A
tetradic
#5A507A #7A505B #707A50 #507A6F
square
#5A507A #7A505B #707A50 #507A6F
split-complementary
#5A507A #7A6F50 #5B7A50
monochromatic
#232030 #3F3855 #5A507A #766A9D #988FB5

Accessibility & contrast

On white

7.33
#5A507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A507A
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A507A#FFFFFF#000000##FFFFFF
##5A507A1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45567C
Deuteranopia (green-blind)
#475579
Tritanopia (blue-blind)
#53575F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a507a;
/* rgb */ color: rgb(90, 80, 122);
/* oklch */ color: oklch(45.9% 0.068 294.5);
Tailwind
colors: {
  custom: {
    50: '#8981a0',
    500: '#5a507a',
    950: '#000000',
  },
}
SCSS
$custom: #5a507a;
$custom-light: #8981a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a507a",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 254.286,
    "s": 20.792,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45877,
    "c": 0.06811,
    "h": 294.5
  },
  "luminance": 0.09316
}

Semantic roles & 50–950 ramp

primary
#5A507A
secondary
#9BA383
accent
#BD6AAA
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #5A507A

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

Preview Lab → · Contrast checker → · Palette generator →

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