#5752D2#5752D2

#5752D2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.191 H 279.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5752D2
RGBrgb(87, 82, 210)
HSLhsl(242, 59%, 57%)
HSVhsv(242, 61%, 82%)
CMYKcmyk(58.6%, 61%, 0%, 17.6%)
CIE-LABlab(42.33, 38.76, -65.59)
CIE-LCHlch(42.33, 76.19, 300.58°)
OKLaboklab(51.87% 0.0303 -0.1886)
OKLCHoklch(51.87% 0.191 279.1)
XYZxyz(18.5769, 12.7126, 62.4351)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D2 #CDD252
analogous
#528DD2 #5752D2 #9752D2
triadic
#5752D2 #D25752 #52D257
tetradic
#5752D2 #D2528D #CDD252 #52D297
square
#5752D2 #D2528D #CDD252 #52D297
split-complementary
#5752D2 #D29752 #8DD252
monochromatic
#272387 #3530B7 #5752D2 #8683DF #B5B3EB

Accessibility & contrast

On white

5.93
#5752D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5752D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D2#FFFFFF#000000##FFFFFF
##5752D21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5752d2;
/* rgb */ color: rgb(87, 82, 210);
/* oklch */ color: oklch(51.9% 0.191 279.1);
Tailwind
colors: {
  custom: {
    50: '#9283e1',
    500: '#5752d2',
    950: '#000000',
  },
}
SCSS
$custom: #5752d2;
$custom-light: #9283e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d2",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 242.344,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51874,
    "c": 0.19098,
    "h": 279.1
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#5752D2
secondary
#D8DAA6
accent
#E246DC
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752D2

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

Preview Lab → · Contrast checker → · Palette generator →

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