#5752D1#5752D1

#5752D1 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.190 H 279.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5752D1
RGBrgb(87, 82, 209)
HSLhsl(242, 58%, 57%)
HSVhsv(242, 61%, 82%)
CMYKcmyk(58.4%, 60.8%, 0%, 18%)
CIE-LABlab(42.25, 38.44, -65.14)
CIE-LCHlch(42.25, 75.64, 300.54°)
OKLaboklab(51.79% 0.0304 -0.1872)
OKLCHoklch(51.79% 0.19 279.2)
XYZxyz(18.4527, 12.6630, 61.7811)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D1 #CCD152
analogous
#528DD1 #5752D1 #9752D1
triadic
#5752D1 #D15752 #52D157
tetradic
#5752D1 #D1528D #CCD152 #52D197
square
#5752D1 #D1528D #CCD152 #52D197
split-complementary
#5752D1 #D19752 #8DD152
monochromatic
#272385 #3630B6 #5752D1 #8682DE #B5B3EB

Accessibility & contrast

On white

5.94
#5752D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5752D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D1#FFFFFF#000000##FFFFFF
##5752D11.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5752d1;
/* rgb */ color: rgb(87, 82, 209);
/* oklch */ color: oklch(51.8% 0.190 279.2);
Tailwind
colors: {
  custom: {
    50: '#9283e0',
    500: '#5752d1',
    950: '#000000',
  },
}
SCSS
$custom: #5752d1;
$custom-light: #9283e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d1",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 242.362,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51794,
    "c": 0.18968,
    "h": 279.2
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#5752D1
secondary
#D7D9A6
accent
#E147DB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752D1

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

Preview Lab → · Contrast checker → · Palette generator →

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