#5A74EC#5A74EC

#5A74EC is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.2% C 0.182 H 270.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A74EC
RGBrgb(90, 116, 236)
HSLhsl(229, 79%, 64%)
HSVhsv(229, 62%, 93%)
CMYKcmyk(61.9%, 50.8%, 0%, 7.5%)
CIE-LABlab(52.64, 27.03, -63.61)
CIE-LCHlch(52.64, 69.11, 293.02°)
OKLaboklab(60.19% 0.0026 -0.1823)
OKLCHoklch(60.19% 0.182 270.8)
XYZxyz(25.5971, 20.7184, 81.9907)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A74EC #ECD25A
analogous
#5ABDEC #5A74EC #895AEC
triadic
#5A74EC #EC5A74 #74EC5A
tetradic
#5A74EC #EC5ABD #ECD25A #5AEC89
square
#5A74EC #EC5ABD #ECD25A #5AEC89
split-complementary
#5A74EC #EC895A #BDEC5A
monochromatic
#1532B7 #2346E6 #5A74EC #91A2F2 #C8D0F9

Accessibility & contrast

On white

4.08
#5A74EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5A74EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A74EC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A74EC#FFFFFF#000000##000000
##5A74EC1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E84F0
Deuteranopia (green-blind)
#0077EA
Tritanopia (blue-blind)
#0090A5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a74ec;
/* rgb */ color: rgb(90, 116, 236);
/* oklch */ color: oklch(60.2% 0.182 270.8);
Tailwind
colors: {
  custom: {
    50: '#969bf3',
    500: '#5a74ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a74ec;
$custom-light: #969bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a74ec",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 229.315,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60188,
    "c": 0.18235,
    "h": 270.8
  },
  "luminance": 0.20721
}

Semantic roles & 50–950 ramp

primary
#5A74EC
secondary
#EBE1B7
accent
#B60ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A74EC

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

Preview Lab → · Contrast checker → · Palette generator →

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