#5752CE#5752CE

#5752CE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.186 H 279.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5752CE
RGBrgb(87, 82, 206)
HSLhsl(242, 56%, 56%)
HSVhsv(242, 60%, 81%)
CMYKcmyk(57.8%, 60.2%, 0%, 19.2%)
CIE-LABlab(42.02, 37.48, -63.78)
CIE-LCHlch(42.02, 73.98, 300.44°)
OKLaboklab(51.56% 0.0305 -0.1832)
OKLCHoklch(51.56% 0.186 279.5)
XYZxyz(18.0848, 12.5158, 59.8434)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CE #C9CE52
analogous
#528BCE #5752CE #9552CE
triadic
#5752CE #CE5752 #52CE57
tetradic
#5752CE #CE528B #C9CE52 #52CE95
square
#5752CE #CE528B #C9CE52 #52CE95
split-complementary
#5752CE #CE9552 #8BCE52
monochromatic
#282581 #3732B1 #5752CE #8582DC #B4B1E9

Accessibility & contrast

On white

5.99
#5752CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5752CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CE
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CE#FFFFFF#000000##FFFFFF
##5752CE1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#097088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5752ce;
/* rgb */ color: rgb(87, 82, 206);
/* oklch */ color: oklch(51.6% 0.186 279.5);
Tailwind
colors: {
  custom: {
    50: '#9183de',
    500: '#5752ce',
    950: '#000000',
  },
}
SCSS
$custom: #5752ce;
$custom-light: #9183de;
$custom-dark: #000000;
JSON
{
  "hex": "#5752ce",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 242.419,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51557,
    "c": 0.18576,
    "h": 279.5
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#5752CE
secondary
#D5D7A4
accent
#DF49D9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752CE

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

Preview Lab → · Contrast checker → · Palette generator →

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