#5752EB#5752EB

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

Color values

HEX#5752EB
RGBrgb(87, 82, 235)
HSLhsl(242, 79%, 62%)
HSVhsv(242, 65%, 92%)
CMYKcmyk(63%, 65.1%, 0%, 7.8%)
CIE-LABlab(44.31, 46.73, -76.58)
CIE-LCHlch(44.31, 89.71, 301.39°)
OKLaboklab(53.94% 0.0284 -0.2208)
OKLCHoklch(53.94% 0.223 277.3)
XYZxyz(21.9383, 14.0572, 80.1384)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752EB #E6EB52
analogous
#5299EB #5752EB #A452EB
triadic
#5752EB #EB5752 #52EB57
tetradic
#5752EB #EB5299 #E6EB52 #52EBA4
square
#5752EB #EB5299 #E6EB52 #52EBA4
split-complementary
#5752EB #EBA452 #99EB52
monochromatic
#1914AE #221BE5 #5752EB #8C89F1 #C2C0F8

Accessibility & contrast

On white

5.51
#5752EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5752EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752EB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752EB#FFFFFF#000000##FFFFFF
##5752EB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0062E8
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5752eb;
/* rgb */ color: rgb(87, 82, 235);
/* oklch */ color: oklch(53.9% 0.223 277.3);
Tailwind
colors: {
  custom: {
    50: '#9683f3',
    500: '#5752eb',
    950: '#000000',
  },
}
SCSS
$custom: #5752eb;
$custom-light: #9683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5752eb",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 241.961,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53942,
    "c": 0.22264,
    "h": 277.3
  },
  "luminance": 0.14059
}

Semantic roles & 50–950 ramp

primary
#5752EB
secondary
#E7E8B0
accent
#DC0AD5
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5752EB

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

Preview Lab → · Contrast checker → · Palette generator →

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