#5752E4#5752E4

#5752E4 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.3% C 0.214 H 277.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5752E4
RGBrgb(87, 82, 228)
HSLhsl(242, 73%, 61%)
HSVhsv(242, 64%, 89%)
CMYKcmyk(61.8%, 64%, 0%, 10.6%)
CIE-LABlab(43.74, 44.51, -73.56)
CIE-LCHlch(43.74, 85.98, 301.18°)
OKLaboklab(53.35% 0.0291 -0.212)
OKLCHoklch(53.35% 0.214 277.8)
XYZxyz(20.9469, 13.6606, 74.9167)
Luminance0.1366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752E4 #DFE452
analogous
#5296E4 #5752E4 #A052E4
triadic
#5752E4 #E45752 #52E457
tetradic
#5752E4 #E45296 #DFE452 #52E4A0
square
#5752E4 #E45296 #DFE452 #52E4A0
split-complementary
#5752E4 #E4A052 #96E452
monochromatic
#1E19A2 #2822D7 #5752E4 #8A87EC #BEBCF5

Accessibility & contrast

On white

5.63
#5752E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5752E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752E4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752E4#FFFFFF#000000##FFFFFF
##5752E41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE9
Deuteranopia (green-blind)
#0061E1
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5752e4;
/* rgb */ color: rgb(87, 82, 228);
/* oklch */ color: oklch(53.3% 0.214 277.8);
Tailwind
colors: {
  custom: {
    50: '#9583ee',
    500: '#5752e4',
    950: '#000000',
  },
}
SCSS
$custom: #5752e4;
$custom-light: #9583ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5752e4",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 242.055,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53349,
    "c": 0.21394,
    "h": 277.8
  },
  "luminance": 0.13662
}

Semantic roles & 50–950 ramp

primary
#5752E4
secondary
#E3E5AD
accent
#D510CE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5752E4

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

Preview Lab → · Contrast checker → · Palette generator →

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