#5A6DEC#5A6DEC

#5A6DEC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.9% C 0.191 H 272.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5A6DEC
RGBrgb(90, 109, 236)
HSLhsl(232, 79%, 64%)
HSVhsv(232, 62%, 93%)
CMYKcmyk(61.9%, 53.8%, 0%, 7.5%)
CIE-LABlab(50.88, 31.32, -66.45)
CIE-LCHlch(50.88, 73.46, 295.23°)
OKLaboklab(58.86% 0.009 -0.1908)
OKLCHoklch(58.86% 0.191 272.7)
XYZxyz(24.8204, 19.1650, 81.7318)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6DEC #ECD95A
analogous
#5AB6EC #5A6DEC #905AEC
triadic
#5A6DEC #EC5A6D #6DEC5A
tetradic
#5A6DEC #EC5AB6 #ECD95A #5AEC90
square
#5A6DEC #EC5AB6 #ECD95A #5AEC90
split-complementary
#5A6DEC #EC905A #B6EC5A
monochromatic
#152AB7 #233CE6 #5A6DEC #919EF2 #C8CEF9

Accessibility & contrast

On white

4.34
#5A6DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5A6DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6DEC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6DEC#FFFFFF#000000##000000
##5A6DEC1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F80F0
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#008BA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6dec;
/* rgb */ color: rgb(90, 109, 236);
/* oklch */ color: oklch(58.9% 0.191 272.7);
Tailwind
colors: {
  custom: {
    50: '#9696f3',
    500: '#5a6dec',
    950: '#000000',
  },
}
SCSS
$custom: #5a6dec;
$custom-light: #9696f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6dec",
  "rgb": {
    "r": 90,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 232.192,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58863,
    "c": 0.19099,
    "h": 272.7
  },
  "luminance": 0.19167
}

Semantic roles & 50–950 ramp

primary
#5A6DEC
secondary
#EBE4B7
accent
#C00ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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