#5A5CCB#5A5CCB

#5A5CCB is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.3% C 0.168 H 278.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5A5CCB
RGBrgb(90, 92, 203)
HSLhsl(239, 52%, 57%)
HSVhsv(239, 56%, 80%)
CMYKcmyk(55.7%, 54.7%, 0%, 20.4%)
CIE-LABlab(44.43, 30.95, -58.14)
CIE-LCHlch(44.43, 65.87, 298.02°)
OKLaboklab(53.33% 0.0242 -0.1665)
OKLCHoklch(53.33% 0.168 278.3)
XYZxyz(18.8197, 14.1385, 58.2256)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CCB #CBC95A
analogous
#5A95CB #5A5CCB #905ACB
triadic
#5A5CCB #CB5A5C #5CCB5A
tetradic
#5A5CCB #CB5A95 #CBC95A #5ACB90
square
#5A5CCB #CB5A95 #CBC95A #5ACB90
split-complementary
#5A5CCB #CB905A #95CB5A
monochromatic
#292A82 #383AB0 #5A5CCB #898ADA #B7B8E8

Accessibility & contrast

On white

5.49
#5A5CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A5CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CCB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CCB#FFFFFF#000000##FFFFFF
##5A5CCB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ECF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#1F768A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5ccb;
/* rgb */ color: rgb(90, 92, 203);
/* oklch */ color: oklch(53.3% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#928adc',
    500: '#5a5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ccb;
$custom-light: #928adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ccb",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 238.938,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53328,
    "c": 0.16825,
    "h": 278.3
  },
  "luminance": 0.1414
}

Semantic roles & 50–950 ramp

primary
#5A5CCB
secondary
#D7D6AA
accent
#D94CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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