#5A7DEC#5A7DEC

#5A7DEC is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.171 H 268.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A7DEC
RGBrgb(90, 125, 236)
HSLhsl(226, 79%, 64%)
HSVhsv(226, 62%, 93%)
CMYKcmyk(61.9%, 47%, 0%, 7.5%)
CIE-LABlab(54.96, 21.52, -59.87)
CIE-LCHlch(54.96, 63.62, 289.77°)
OKLaboklab(61.95% -0.006 -0.1712)
OKLCHoklch(61.95% 0.171 268)
XYZxyz(26.6852, 22.8947, 82.3535)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DEC #ECC95A
analogous
#5AC6EC #5A7DEC #805AEC
triadic
#5A7DEC #EC5A7D #7DEC5A
tetradic
#5A7DEC #EC5AC6 #ECC95A #5AEC80
square
#5A7DEC #EC5AC6 #ECC95A #5AEC80
split-complementary
#5A7DEC #EC805A #C6EC5A
monochromatic
#153CB7 #2352E6 #5A7DEC #91A8F2 #C8D3F9

Accessibility & contrast

On white

3.76
#5A7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5A7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DEC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DEC#FFFFFF#000000##000000
##5A7DEC1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#458BF0
Deuteranopia (green-blind)
#2A7DEA
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7dec;
/* rgb */ color: rgb(90, 125, 236);
/* oklch */ color: oklch(62.0% 0.171 268.0);
Tailwind
colors: {
  custom: {
    50: '#95a2f3',
    500: '#5a7dec',
    950: '#000000',
  },
}
SCSS
$custom: #5a7dec;
$custom-light: #95a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7dec",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 225.616,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61952,
    "c": 0.17133,
    "h": 268
  },
  "luminance": 0.22897
}

Semantic roles & 50–950 ramp

primary
#5A7DEC
secondary
#EBDEB7
accent
#A90ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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