#5A62DC#5A62DC

#5A62DC is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.7% C 0.183 H 275.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5A62DC
RGBrgb(90, 98, 220)
HSLhsl(236, 65%, 61%)
HSVhsv(236, 59%, 86%)
CMYKcmyk(59.1%, 55.5%, 0%, 13.7%)
CIE-LABlab(47.07, 32.78, -63.59)
CIE-LCHlch(47.07, 71.54, 297.27°)
OKLaboklab(55.67% 0.0187 -0.1825)
OKLCHoklch(55.67% 0.183 275.9)
XYZxyz(21.4982, 16.0747, 69.6661)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62DC #DCD45A
analogous
#5AA3DC #5A62DC #935ADC
triadic
#5A62DC #DC5A62 #62DC5A
tetradic
#5A62DC #DC5AA3 #DCD45A #5ADC93
square
#5A62DC #DC5AA3 #DCD45A #5ADC93
split-complementary
#5A62DC #DC935A #A3DC5A
monochromatic
#21289B #2C35CD #5A62DC #8C92E7 #BFC2F1

Accessibility & contrast

On white

4.98
#5A62DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5A62DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62DC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62DC#FFFFFF#000000##FFFFFF
##5A62DC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#007F95
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a62dc;
/* rgb */ color: rgb(90, 98, 220);
/* oklch */ color: oklch(55.7% 0.183 275.9);
Tailwind
colors: {
  custom: {
    50: '#948ee8',
    500: '#5a62dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a62dc;
$custom-light: #948ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62dc",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 236.308,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55668,
    "c": 0.18344,
    "h": 275.9
  },
  "luminance": 0.16076
}

Semantic roles & 50–950 ramp

primary
#5A62DC
secondary
#E2DEB0
accent
#C219CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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