#5752D4#5752D4

#5752D4 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.194 H 279.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5752D4
RGBrgb(87, 82, 212)
HSLhsl(242, 60%, 58%)
HSVhsv(242, 61%, 83%)
CMYKcmyk(59%, 61.3%, 0%, 16.9%)
CIE-LABlab(42.48, 39.40, -66.49)
CIE-LCHlch(42.48, 77.29, 300.65°)
OKLaboklab(52.03% 0.0302 -0.1912)
OKLCHoklch(52.03% 0.194 279)
XYZxyz(18.8277, 12.8129, 63.7556)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D4 #CFD452
analogous
#528ED4 #5752D4 #9852D4
triadic
#5752D4 #D45752 #52D457
tetradic
#5752D4 #D4528E #CFD452 #52D498
square
#5752D4 #D4528E #CFD452 #52D498
split-complementary
#5752D4 #D49852 #8ED452
monochromatic
#262289 #342EBA #5752D4 #8783E0 #B6B4EC

Accessibility & contrast

On white

5.89
#5752D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5752D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D4#FFFFFF#000000##FFFFFF
##5752D41.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5752d4;
/* rgb */ color: rgb(87, 82, 212);
/* oklch */ color: oklch(52.0% 0.194 279.0);
Tailwind
colors: {
  custom: {
    50: '#9283e2',
    500: '#5752d4',
    950: '#000000',
  },
}
SCSS
$custom: #5752d4;
$custom-light: #9283e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d4",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 242.308,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52034,
    "c": 0.19357,
    "h": 279
  },
  "luminance": 0.12814
}

Semantic roles & 50–950 ramp

primary
#5752D4
secondary
#D9DBA7
accent
#E344DD
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #5752D4

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

Preview Lab → · Contrast checker → · Palette generator →

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