#5752D8#5752D8

#5752D8 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.4% C 0.199 H 278.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5752D8
RGBrgb(87, 82, 216)
HSLhsl(242, 63%, 58%)
HSVhsv(242, 62%, 85%)
CMYKcmyk(59.7%, 62%, 0%, 15.3%)
CIE-LABlab(42.79, 40.68, -68.28)
CIE-LCHlch(42.79, 79.48, 300.78°)
OKLaboklab(52.36% 0.03 -0.1965)
OKLCHoklch(52.36% 0.199 278.7)
XYZxyz(19.3385, 13.0173, 66.4460)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D8 #D3D852
analogous
#5290D8 #5752D8 #9A52D8
triadic
#5752D8 #D85752 #52D857
tetradic
#5752D8 #D85290 #D3D852 #52D89A
square
#5752D8 #D85290 #D3D852 #52D89A
split-complementary
#5752D8 #D89A52 #90D852
monochromatic
#24208F #312CC1 #5752D8 #8784E3 #B8B6EF

Accessibility & contrast

On white

5.83
#5752D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5752D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D8
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D8#FFFFFF#000000##FFFFFF
##5752D81.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5752d8;
/* rgb */ color: rgb(87, 82, 216);
/* oklch */ color: oklch(52.4% 0.199 278.7);
Tailwind
colors: {
  custom: {
    50: '#9383e5',
    500: '#5752d8',
    950: '#000000',
  },
}
SCSS
$custom: #5752d8;
$custom-light: #9383e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d8",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 242.239,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52357,
    "c": 0.19874,
    "h": 278.7
  },
  "luminance": 0.13019
}

Semantic roles & 50–950 ramp

primary
#5752D8
secondary
#DCDDA8
accent
#E642E0
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5752D8

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

Preview Lab → · Contrast checker → · Palette generator →

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