#5A5CDA#5A5CDA

#5A5CDA is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.4% C 0.188 H 277.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5A5CDA
RGBrgb(90, 92, 218)
HSLhsl(239, 63%, 60%)
HSVhsv(239, 59%, 85%)
CMYKcmyk(58.7%, 57.8%, 0%, 14.5%)
CIE-LABlab(45.48, 35.79, -65.04)
CIE-LCHlch(45.48, 74.23, 298.83°)
OKLaboklab(54.44% 0.0244 -0.1868)
OKLCHoklch(54.44% 0.188 277.4)
XYZxyz(20.6944, 14.8884, 68.0993)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CDA #DAD85A
analogous
#5A9CDA #5A5CDA #985ADA
triadic
#5A5CDA #DA5A5C #5CDA5A
tetradic
#5A5CDA #DA5A9C #DAD85A #5ADA98
square
#5A5CDA #DA5A9C #DAD85A #5ADA98
split-complementary
#5A5CDA #DA985A #9CDA5A
monochromatic
#222498 #2D30CA #5A5CDA #8C8DE5 #BEBFF0

Accessibility & contrast

On white

5.28
#5A5CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5A5CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CDA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CDA#FFFFFF#000000##FFFFFF
##5A5CDA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#0066D7
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5cda;
/* rgb */ color: rgb(90, 92, 218);
/* oklch */ color: oklch(54.4% 0.188 277.4);
Tailwind
colors: {
  custom: {
    50: '#948ae6',
    500: '#5a5cda',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cda;
$custom-light: #948ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cda",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 239.063,
    "s": 63.366,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54441,
    "c": 0.18836,
    "h": 277.4
  },
  "luminance": 0.1489
}

Semantic roles & 50–950 ramp

primary
#5A5CDA
secondary
#E0E0AF
accent
#C81ACB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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