#5A4BCC#5A4BCC

#5A4BCC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.5% C 0.191 H 282.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5A4BCC
RGBrgb(90, 75, 204)
HSLhsl(247, 56%, 55%)
HSVhsv(247, 63%, 80%)
CMYKcmyk(55.9%, 63.2%, 0%, 20%)
CIE-LABlab(40.52, 41.54, -65.08)
CIE-LCHlch(40.52, 77.20, 302.55°)
OKLaboklab(50.46% 0.041 -0.187)
OKLCHoklch(50.46% 0.191 282.4)
XYZxyz(17.6282, 11.5643, 58.4183)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BCC #BDCC4B
analogous
#4B7CCC #5A4BCC #9B4BCC
triadic
#5A4BCC #CC5A4B #4BCC5A
tetradic
#5A4BCC #CC4B7C #BDCC4B #4BCC9B
square
#5A4BCC #CC4B7C #BDCC4B #4BCC9B
split-complementary
#5A4BCC #CC9B4B #7CCC4B
monochromatic
#2D237A #3E30AA #5A4BCC #867BDA #B1AAE7

Accessibility & contrast

On white

6.34
#5A4BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5A4BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BCC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BCC#FFFFFF#000000##FFFFFF
##5A4BCC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#216B84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4bcc;
/* rgb */ color: rgb(90, 75, 204);
/* oklch */ color: oklch(50.5% 0.191 282.4);
Tailwind
colors: {
  custom: {
    50: '#937edc',
    500: '#5a4bcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bcc;
$custom-light: #937edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bcc",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 246.977,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50463,
    "c": 0.19142,
    "h": 282.4
  },
  "luminance": 0.11565
}

Semantic roles & 50–950 ramp

primary
#5A4BCC
secondary
#CED59E
accent
#DF49CE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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