#5A4CDA#5A4CDA

#5A4CDA is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.8% C 0.208 H 280.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5A4CDA
RGBrgb(90, 76, 218)
HSLhsl(246, 66%, 58%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.7%, 65.1%, 0%, 14.5%)
CIE-LABlab(41.85, 45.30, -70.95)
CIE-LCHlch(41.85, 84.18, 302.56°)
OKLaboklab(51.78% 0.0387 -0.2042)
OKLCHoklch(51.78% 0.208 280.7)
XYZxyz(19.4518, 12.4031, 67.6851)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CDA #CCDA4C
analogous
#4C85DA #5A4CDA #A14CDA
triadic
#5A4CDA #DA5A4C #4CDA5A
tetradic
#5A4CDA #DA4C85 #CCDA4C #4CDAA1
square
#5A4CDA #DA4C85 #CCDA4C #4CDAA1
split-complementary
#5A4CDA #DAA14C #85DA4C
monochromatic
#291D8E #3728C1 #5A4CDA #897FE4 #B7B1EF

Accessibility & contrast

On white

6.03
#5A4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CDA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CDA#FFFFFF#000000##FFFFFF
##5A4CDA1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#005DD7
Tritanopia (blue-blind)
#00708C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a4cda;
/* rgb */ color: rgb(90, 76, 218);
/* oklch */ color: oklch(51.8% 0.208 280.7);
Tailwind
colors: {
  custom: {
    50: '#957fe7',
    500: '#5a4cda',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cda;
$custom-light: #957fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cda",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 245.915,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.20785,
    "h": 280.7
  },
  "luminance": 0.12404
}

Semantic roles & 50–950 ramp

primary
#5A4CDA
secondary
#D8DDA4
accent
#E93FD8
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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