#5752CA#5752CA

#5752CA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.180 H 279.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5752CA
RGBrgb(87, 82, 202)
HSLhsl(243, 53%, 56%)
HSVhsv(243, 59%, 79%)
CMYKcmyk(56.9%, 59.4%, 0%, 20.8%)
CIE-LABlab(41.73, 36.20, -61.96)
CIE-LCHlch(41.73, 71.76, 300.29°)
OKLaboklab(51.24% 0.0306 -0.1779)
OKLCHoklch(51.24% 0.18 279.8)
XYZxyz(17.6051, 12.3239, 57.3167)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CA #C5CA52
analogous
#5289CA #5752CA #9352CA
triadic
#5752CA #CA5752 #52CA57
tetradic
#5752CA #CA5289 #C5CA52 #52CA93
square
#5752CA #CA5289 #C5CA52 #52CA93
split-complementary
#5752CA #CA9352 #89CA52
monochromatic
#29267C #3934AB #5752CA #8481D8 #B2B0E7

Accessibility & contrast

On white

6.06
#5752CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5752CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CA#FFFFFF#000000##FFFFFF
##5752CA1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#156F86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5752ca;
/* rgb */ color: rgb(87, 82, 202);
/* oklch */ color: oklch(51.2% 0.180 279.8);
Tailwind
colors: {
  custom: {
    50: '#9183db',
    500: '#5752ca',
    950: '#000000',
  },
}
SCSS
$custom: #5752ca;
$custom-light: #9183db;
$custom-dark: #000000;
JSON
{
  "hex": "#5752ca",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 242.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51243,
    "c": 0.18049,
    "h": 279.8
  },
  "luminance": 0.12325
}

Semantic roles & 50–950 ramp

primary
#5752CA
secondary
#D3D5A3
accent
#DD4BD6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752CA

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

Preview Lab → · Contrast checker → · Palette generator →

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