#5752D7#5752D7

#5752D7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.3% C 0.197 H 278.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5752D7
RGBrgb(87, 82, 215)
HSLhsl(242, 62%, 58%)
HSVhsv(242, 62%, 84%)
CMYKcmyk(59.5%, 61.9%, 0%, 15.7%)
CIE-LABlab(42.71, 40.36, -67.84)
CIE-LCHlch(42.71, 78.93, 300.75°)
OKLaboklab(52.28% 0.0301 -0.1951)
OKLCHoklch(52.28% 0.197 278.8)
XYZxyz(19.2096, 12.9657, 65.7672)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D7 #D2D752
analogous
#528FD7 #5752D7 #9A52D7
triadic
#5752D7 #D75752 #52D757
tetradic
#5752D7 #D7528F #D2D752 #52D79A
square
#5752D7 #D7528F #D2D752 #52D79A
split-complementary
#5752D7 #D79A52 #8FD752
monochromatic
#25218E #322CC0 #5752D7 #8784E2 #B8B5EE

Accessibility & contrast

On white

5.84
#5752D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5752D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D7#FFFFFF#000000##FFFFFF
##5752D71.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5752d7;
/* rgb */ color: rgb(87, 82, 215);
/* oklch */ color: oklch(52.3% 0.197 278.8);
Tailwind
colors: {
  custom: {
    50: '#9383e4',
    500: '#5752d7',
    950: '#000000',
  },
}
SCSS
$custom: #5752d7;
$custom-light: #9383e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d7",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 242.256,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52276,
    "c": 0.19745,
    "h": 278.8
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

primary
#5752D7
secondary
#DBDDA8
accent
#E642DF
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5752D7

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

Preview Lab → · Contrast checker → · Palette generator →

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