#5752CC#5752CC

#5752CC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.183 H 279.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5752CC
RGBrgb(87, 82, 204)
HSLhsl(242, 54%, 56%)
HSVhsv(242, 60%, 80%)
CMYKcmyk(57.4%, 59.8%, 0%, 20%)
CIE-LABlab(41.87, 36.84, -62.87)
CIE-LCHlch(41.87, 72.87, 300.37°)
OKLaboklab(51.4% 0.0306 -0.1806)
OKLCHoklch(51.4% 0.183 279.6)
XYZxyz(17.8434, 12.4192, 58.5719)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CC #C7CC52
analogous
#528ACC #5752CC #9452CC
triadic
#5752CC #CC5752 #52CC57
tetradic
#5752CC #CC528A #C7CC52 #52CC94
square
#5752CC #CC528A #C7CC52 #52CC94
split-complementary
#5752CC #CC9452 #8ACC52
monochromatic
#29257E #3833AE #5752CC #8581DA #B3B1E8

Accessibility & contrast

On white

6.03
#5752CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5752CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CC#FFFFFF#000000##FFFFFF
##5752CC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#106F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5752cc;
/* rgb */ color: rgb(87, 82, 204);
/* oklch */ color: oklch(51.4% 0.183 279.6);
Tailwind
colors: {
  custom: {
    50: '#9183dc',
    500: '#5752cc',
    950: '#000000',
  },
}
SCSS
$custom: #5752cc;
$custom-light: #9183dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5752cc",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 242.459,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.514,
    "c": 0.18313,
    "h": 279.6
  },
  "luminance": 0.1242
}

Semantic roles & 50–950 ramp

primary
#5752CC
secondary
#D4D6A4
accent
#DE4AD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752CC

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

Preview Lab → · Contrast checker → · Palette generator →

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