#5752E2#5752E2

#5752E2 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.2% C 0.211 H 277.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5752E2
RGBrgb(87, 82, 226)
HSLhsl(242, 71%, 60%)
HSVhsv(242, 64%, 89%)
CMYKcmyk(61.5%, 63.7%, 0%, 11.4%)
CIE-LABlab(43.58, 43.87, -72.69)
CIE-LCHlch(43.58, 84.90, 301.11°)
OKLaboklab(53.18% 0.0292 -0.2094)
OKLCHoklch(53.18% 0.211 277.9)
XYZxyz(20.6708, 13.5502, 73.4629)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752E2 #DDE252
analogous
#5295E2 #5752E2 #9F52E2
triadic
#5752E2 #E25752 #52E257
tetradic
#5752E2 #E25295 #DDE252 #52E29F
square
#5752E2 #E25295 #DDE252 #52E29F
split-complementary
#5752E2 #E29F52 #95E252
monochromatic
#1F1B9F #2A23D3 #5752E2 #8A86EB #BDBBF4

Accessibility & contrast

On white

5.66
#5752E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5752E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752E2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752E2#FFFFFF#000000##FFFFFF
##5752E21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5752e2;
/* rgb */ color: rgb(87, 82, 226);
/* oklch */ color: oklch(53.2% 0.211 277.9);
Tailwind
colors: {
  custom: {
    50: '#9583ec',
    500: '#5752e2',
    950: '#000000',
  },
}
SCSS
$custom: #5752e2;
$custom-light: #9583ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5752e2",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 242.083,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53182,
    "c": 0.21143,
    "h": 277.9
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#5752E2
secondary
#E1E3AC
accent
#D312CD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5752E2

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

Preview Lab → · Contrast checker → · Palette generator →

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