#5752EC#5752EC

#5752EC is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.224 H 277.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5752EC
RGBrgb(87, 82, 236)
HSLhsl(242, 80%, 62%)
HSVhsv(242, 65%, 93%)
CMYKcmyk(63.1%, 65.3%, 0%, 7.5%)
CIE-LABlab(44.40, 47.05, -77.01)
CIE-LCHlch(44.40, 90.25, 301.42°)
OKLaboklab(54.03% 0.0283 -0.2221)
OKLCHoklch(54.03% 0.224 277.3)
XYZxyz(22.0832, 14.1151, 80.9014)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752EC #E7EC52
analogous
#529AEC #5752EC #A452EC
triadic
#5752EC #EC5752 #52EC57
tetradic
#5752EC #EC529A #E7EC52 #52ECA4
square
#5752EC #EC529A #E7EC52 #52ECA4
split-complementary
#5752EC #ECA452 #9AEC52
monochromatic
#1813B0 #211BE6 #5752EC #8D89F2 #C2C0F8

Accessibility & contrast

On white

5.49
#5752EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5752EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752EC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752EC#FFFFFF#000000##FFFFFF
##5752EC1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5752ec;
/* rgb */ color: rgb(87, 82, 236);
/* oklch */ color: oklch(54.0% 0.224 277.3);
Tailwind
colors: {
  custom: {
    50: '#9683f3',
    500: '#5752ec',
    950: '#000000',
  },
}
SCSS
$custom: #5752ec;
$custom-light: #9683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5752ec",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 241.948,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54028,
    "c": 0.22387,
    "h": 277.3
  },
  "luminance": 0.14117
}

Semantic roles & 50–950 ramp

primary
#5752EC
secondary
#E7E9B1
accent
#DD09D6
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5752EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5752EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva