#5752D3#5752D3

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

Color values

HEX#5752D3
RGBrgb(87, 82, 211)
HSLhsl(242, 59%, 57%)
HSVhsv(242, 61%, 83%)
CMYKcmyk(58.8%, 61.1%, 0%, 17.3%)
CIE-LABlab(42.40, 39.08, -66.04)
CIE-LCHlch(42.40, 76.74, 300.61°)
OKLaboklab(51.95% 0.0303 -0.1899)
OKLCHoklch(51.95% 0.192 279.1)
XYZxyz(18.7019, 12.7626, 63.0933)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752D3 #CED352
analogous
#528DD3 #5752D3 #9852D3
triadic
#5752D3 #D35752 #52D357
tetradic
#5752D3 #D3528D #CED352 #52D398
square
#5752D3 #D3528D #CED352 #52D398
split-complementary
#5752D3 #D39852 #8DD352
monochromatic
#272388 #342FB9 #5752D3 #8683DF #B6B4EC

Accessibility & contrast

On white

5.91
#5752D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5752D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752D3
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752D3#FFFFFF#000000##FFFFFF
##5752D31.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5752d3;
/* rgb */ color: rgb(87, 82, 211);
/* oklch */ color: oklch(52.0% 0.192 279.1);
Tailwind
colors: {
  custom: {
    50: '#9283e1',
    500: '#5752d3',
    950: '#000000',
  },
}
SCSS
$custom: #5752d3;
$custom-light: #9283e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5752d3",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 242.326,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.19228,
    "h": 279.1
  },
  "luminance": 0.12764
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5752D3

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

Preview Lab → · Contrast checker → · Palette generator →

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