#5A4CCC#5A4CCC

#5A4CCC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.190 H 282.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5A4CCC
RGBrgb(90, 76, 204)
HSLhsl(247, 56%, 55%)
HSVhsv(247, 63%, 80%)
CMYKcmyk(55.9%, 62.7%, 0%, 20%)
CIE-LABlab(40.74, 40.95, -64.71)
CIE-LCHlch(40.74, 76.58, 302.33°)
OKLaboklab(50.62% 0.04 -0.1859)
OKLCHoklch(50.62% 0.19 282.2)
XYZxyz(17.6966, 11.7011, 58.4411)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CCC #BECC4C
analogous
#4C7ECC #5A4CCC #9A4CCC
triadic
#5A4CCC #CC5A4C #4CCC5A
tetradic
#5A4CCC #CC4C7E #BECC4C #4CCC9A
square
#5A4CCC #CC4C7E #BECC4C #4CCC9A
split-complementary
#5A4CCC #CC9A4C #7ECC4C
monochromatic
#2D237B #3E31AA #5A4CCC #867CDA #B2ABE7

Accessibility & contrast

On white

6.29
#5A4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5A4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CCC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CCC#FFFFFF#000000##FFFFFF
##5A4CCC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#216B85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a4ccc;
/* rgb */ color: rgb(90, 76, 204);
/* oklch */ color: oklch(50.6% 0.190 282.2);
Tailwind
colors: {
  custom: {
    50: '#937fdc',
    500: '#5a4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ccc;
$custom-light: #937fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ccc",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 246.563,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.19017,
    "h": 282.2
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#5A4CCC
secondary
#CFD59F
accent
#DF49CF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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