#5752CD#5752CD

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

Color values

HEX#5752CD
RGBrgb(87, 82, 205)
HSLhsl(242, 55%, 56%)
HSVhsv(242, 60%, 80%)
CMYKcmyk(57.6%, 60%, 0%, 19.6%)
CIE-LABlab(41.95, 37.16, -63.33)
CIE-LCHlch(41.95, 73.42, 300.40°)
OKLaboklab(51.48% 0.0305 -0.1819)
OKLCHoklch(51.48% 0.184 279.5)
XYZxyz(17.9637, 12.4674, 59.2056)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CD #C8CD52
analogous
#528BCD #5752CD #9552CD
triadic
#5752CD #CD5752 #52CD57
tetradic
#5752CD #CD528B #C8CD52 #52CD95
square
#5752CD #CD528B #C8CD52 #52CD95
split-complementary
#5752CD #CD9552 #8BCD52
monochromatic
#292580 #3833AF #5752CD #8581DB #B3B1E8

Accessibility & contrast

On white

6.01
#5752CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5752CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CD#FFFFFF#000000##FFFFFF
##5752CD1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#0D7088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5752cd;
/* rgb */ color: rgb(87, 82, 205);
/* oklch */ color: oklch(51.5% 0.184 279.5);
Tailwind
colors: {
  custom: {
    50: '#9183dd',
    500: '#5752cd',
    950: '#000000',
  },
}
SCSS
$custom: #5752cd;
$custom-light: #9183dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5752cd",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 242.439,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51478,
    "c": 0.18445,
    "h": 279.5
  },
  "luminance": 0.12469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5752CD

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

Preview Lab → · Contrast checker → · Palette generator →

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