#5A4F7C#5A4F7C

#5A4F7C is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.8% C 0.073 H 294.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5A4F7C
RGBrgb(90, 79, 124)
HSLhsl(255, 22%, 40%)
HSVhsv(255, 36%, 49%)
CMYKcmyk(27.4%, 36.3%, 0%, 51.4%)
CIE-LABlab(36.41, 15.16, -23.87)
CIE-LCHlch(36.41, 28.28, 302.42°)
OKLaboklab(45.77% 0.0303 -0.0663)
OKLCHoklch(45.77% 0.073 294.6)
XYZxyz(10.6497, 9.2207, 20.2836)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4F7C #717C4F
analogous
#4F5B7C #5A4F7C #714F7C
triadic
#5A4F7C #7C5A4F #4F7C5A
tetradic
#5A4F7C #7C4F5B #717C4F #4F7C71
square
#5A4F7C #7C4F5B #717C4F #4F7C71
split-complementary
#5A4F7C #7C714F #5B7C4F
monochromatic
#241F31 #3F3757 #5A4F7C #76699F #988EB7

Accessibility & contrast

On white

7.38
#5A4F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A4F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4F7C
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4F7C#FFFFFF#000000##FFFFFF
##5A4F7C1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567E
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#535760
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a4f7c;
/* rgb */ color: rgb(90, 79, 124);
/* oklch */ color: oklch(45.8% 0.073 294.6);
Tailwind
colors: {
  custom: {
    50: '#8980a2',
    500: '#5a4f7c',
    950: '#000000',
  },
}
SCSS
$custom: #5a4f7c;
$custom-light: #8980a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4f7c",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 254.667,
    "s": 22.167,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.07294,
    "h": 294.6
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#5A4F7C
secondary
#9CA483
accent
#BF69AA
background
#F8F7FA
surface
#F0EEF3
border
#CBC9CD
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5A4F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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