#5752E5#5752E5

#5752E5 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.4% C 0.215 H 277.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5752E5
RGBrgb(87, 82, 229)
HSLhsl(242, 74%, 61%)
HSVhsv(242, 64%, 90%)
CMYKcmyk(62%, 64.2%, 0%, 10.2%)
CIE-LABlab(43.82, 44.82, -73.99)
CIE-LCHlch(43.82, 86.51, 301.21°)
OKLaboklab(53.43% 0.029 -0.2132)
OKLCHoklch(53.43% 0.215 277.7)
XYZxyz(21.0861, 13.7163, 75.6499)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752E5 #E0E552
analogous
#5296E5 #5752E5 #A052E5
triadic
#5752E5 #E55752 #52E557
tetradic
#5752E5 #E55296 #E0E552 #52E5A0
square
#5752E5 #E55296 #E0E552 #52E5A0
split-complementary
#5752E5 #E5A052 #96E552
monochromatic
#1D19A4 #2721D9 #5752E5 #8B87ED #BEBCF5

Accessibility & contrast

On white

5.61
#5752E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5752E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752E5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752E5#FFFFFF#000000##FFFFFF
##5752E51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5752e5;
/* rgb */ color: rgb(87, 82, 229);
/* oklch */ color: oklch(53.4% 0.215 277.7);
Tailwind
colors: {
  custom: {
    50: '#9583ee',
    500: '#5752e5',
    950: '#000000',
  },
}
SCSS
$custom: #5752e5;
$custom-light: #9583ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5752e5",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 242.041,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53433,
    "c": 0.21519,
    "h": 277.7
  },
  "luminance": 0.13718
}

Semantic roles & 50–950 ramp

primary
#5752E5
secondary
#E3E5AE
accent
#D610CF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5752E5

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

Preview Lab → · Contrast checker → · Palette generator →

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