#5A6CEC#5A6CEC

#5A6CEC is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.7% C 0.192 H 273.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5A6CEC
RGBrgb(90, 108, 236)
HSLhsl(233, 79%, 64%)
HSVhsv(233, 62%, 93%)
CMYKcmyk(61.9%, 54.2%, 0%, 7.5%)
CIE-LABlab(50.63, 31.93, -66.85)
CIE-LCHlch(50.63, 74.09, 295.53°)
OKLaboklab(58.68% 0.0099 -0.192)
OKLCHoklch(58.68% 0.192 273)
XYZxyz(24.7143, 18.9528, 81.6965)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6CEC #ECDA5A
analogous
#5AB5EC #5A6CEC #915AEC
triadic
#5A6CEC #EC5A6C #6CEC5A
tetradic
#5A6CEC #EC5AB5 #ECDA5A #5AEC91
square
#5A6CEC #EC5AB5 #ECDA5A #5AEC91
split-complementary
#5A6CEC #EC915A #B5EC5A
monochromatic
#1529B7 #233BE6 #5A6CEC #919DF2 #C8CEF9

Accessibility & contrast

On white

4.38
#5A6CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5A6CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6CEC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6CEC#FFFFFF#000000##000000
##5A6CEC1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#057FF0
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#008AA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6cec;
/* rgb */ color: rgb(90, 108, 236);
/* oklch */ color: oklch(58.7% 0.192 273.0);
Tailwind
colors: {
  custom: {
    50: '#9695f3',
    500: '#5a6cec',
    950: '#000000',
  },
}
SCSS
$custom: #5a6cec;
$custom-light: #9695f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6cec",
  "rgb": {
    "r": 90,
    "g": 108,
    "b": 236
  },
  "hsl": {
    "h": 232.603,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58677,
    "c": 0.19223,
    "h": 273
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#5A6CEC
secondary
#EBE4B7
accent
#C20ADC
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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