#5A5FEC#5A5FEC

#5A5FEC is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.4% C 0.208 H 275.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A5FEC
RGBrgb(90, 95, 236)
HSLhsl(238, 79%, 64%)
HSVhsv(238, 62%, 93%)
CMYKcmyk(61.9%, 59.7%, 0%, 7.5%)
CIE-LABlab(47.51, 39.82, -71.92)
CIE-LCHlch(47.51, 82.21, 298.97°)
OKLaboklab(56.36% 0.0214 -0.207)
OKLCHoklch(56.36% 0.208 275.9)
XYZxyz(23.4440, 16.4123, 81.2731)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FEC #ECE75A
analogous
#5AA8EC #5A5FEC #9E5AEC
triadic
#5A5FEC #EC5A5F #5FEC5A
tetradic
#5A5FEC #EC5AA8 #ECE75A #5AEC9E
square
#5A5FEC #EC5AA8 #ECE75A #5AEC9E
split-complementary
#5A5FEC #EC9E5A #A8EC5A
monochromatic
#151BB7 #232AE6 #5A5FEC #9194F2 #C8C9F9

Accessibility & contrast

On white

4.90
#5A5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A5FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FEC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FEC#FFFFFF#000000##FFFFFF
##5A5FEC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#00829C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5fec;
/* rgb */ color: rgb(90, 95, 236);
/* oklch */ color: oklch(56.4% 0.208 275.9);
Tailwind
colors: {
  custom: {
    50: '#978cf3',
    500: '#5a5fec',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fec;
$custom-light: #978cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fec",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 237.945,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56357,
    "c": 0.20809,
    "h": 275.9
  },
  "luminance": 0.16414
}

Semantic roles & 50–950 ramp

primary
#5A5FEC
secondary
#EBE9B7
accent
#D40ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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