#5752CF#5752CF

#5752CF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.6% C 0.187 H 279.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5752CF
RGBrgb(87, 82, 207)
HSLhsl(242, 57%, 57%)
HSVhsv(242, 60%, 81%)
CMYKcmyk(58%, 60.4%, 0%, 18.8%)
CIE-LABlab(42.10, 37.80, -64.24)
CIE-LCHlch(42.10, 74.53, 300.47°)
OKLaboklab(51.64% 0.0305 -0.1846)
OKLCHoklch(51.64% 0.187 279.4)
XYZxyz(18.2067, 12.5645, 60.4852)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CF #CACF52
analogous
#528CCF #5752CF #9652CF
triadic
#5752CF #CF5752 #52CF57
tetradic
#5752CF #CF528C #CACF52 #52CF96
square
#5752CF #CF528C #CACF52 #52CF96
split-complementary
#5752CF #CF9652 #8CCF52
monochromatic
#282482 #3731B2 #5752CF #8682DC #B4B2EA

Accessibility & contrast

On white

5.98
#5752CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5752CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CF#FFFFFF#000000##FFFFFF
##5752CF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#057089
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5752cf;
/* rgb */ color: rgb(87, 82, 207);
/* oklch */ color: oklch(51.6% 0.187 279.4);
Tailwind
colors: {
  custom: {
    50: '#9183df',
    500: '#5752cf',
    950: '#000000',
  },
}
SCSS
$custom: #5752cf;
$custom-light: #9183df;
$custom-dark: #000000;
JSON
{
  "hex": "#5752cf",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 242.4,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51636,
    "c": 0.18707,
    "h": 279.4
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#5752CF
secondary
#D6D8A5
accent
#E048DA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5752CF

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

Preview Lab → · Contrast checker → · Palette generator →

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