#5A54DC#5A54DC

#5A54DC is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.2% C 0.201 H 279.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5A54DC
RGBrgb(90, 84, 220)
HSLhsl(243, 66%, 60%)
HSVhsv(243, 62%, 86%)
CMYKcmyk(59.1%, 61.8%, 0%, 13.7%)
CIE-LABlab(43.77, 41.25, -68.96)
CIE-LCHlch(43.77, 80.35, 300.89°)
OKLaboklab(53.23% 0.0316 -0.1983)
OKLCHoklch(53.23% 0.201 279.1)
XYZxyz(20.3009, 13.6801, 69.2670)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54DC #D6DC54
analogous
#5492DC #5A54DC #9E54DC
triadic
#5A54DC #DC5A54 #54DC5A
tetradic
#5A54DC #DC5492 #D6DC54 #54DC9E
square
#5A54DC #DC5492 #D6DC54 #54DC9E
split-complementary
#5A54DC #DC9E54 #92DC54
monochromatic
#241F97 #3029CA #5A54DC #8B87E6 #BCBAF1

Accessibility & contrast

On white

5.62
#5A54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5A54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54DC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54DC#FFFFFF#000000##FFFFFF
##5A54DC1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a54dc;
/* rgb */ color: rgb(90, 84, 220);
/* oklch */ color: oklch(53.2% 0.201 279.1);
Tailwind
colors: {
  custom: {
    50: '#9584e8',
    500: '#5a54dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a54dc;
$custom-light: #9584e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54dc",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 242.647,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53228,
    "c": 0.20085,
    "h": 279.1
  },
  "luminance": 0.13682
}

Semantic roles & 50–950 ramp

primary
#5A54DC
secondary
#DEE0AC
accent
#E93FE1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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