#5852CC#5852CC

#5852CC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.183 H 280.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5852CC
RGBrgb(88, 82, 204)
HSLhsl(243, 54%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(56.9%, 59.8%, 0%, 20%)
CIE-LABlab(41.95, 37.01, -62.75)
CIE-LCHlch(41.95, 72.85, 300.54°)
OKLaboklab(51.47% 0.0318 -0.1802)
OKLCHoklch(51.47% 0.183 280)
XYZxyz(17.9375, 12.4677, 58.5763)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852CC #C6CC52
analogous
#5289CC #5852CC #9552CC
triadic
#5852CC #CC5852 #52CC58
tetradic
#5852CC #CC5289 #C6CC52 #52CC95
square
#5852CC #CC5289 #C6CC52 #52CC95
split-complementary
#5852CC #CC9552 #89CC52
monochromatic
#2A257E #3933AE #5852CC #8681DA #B3B1E8

Accessibility & contrast

On white

6.01
#5852CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5852CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852CC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852CC#FFFFFF#000000##FFFFFF
##5852CC1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#166F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5852cc;
/* rgb */ color: rgb(88, 82, 204);
/* oklch */ color: oklch(51.5% 0.183 280.0);
Tailwind
colors: {
  custom: {
    50: '#9183dc',
    500: '#5852cc',
    950: '#000000',
  },
}
SCSS
$custom: #5852cc;
$custom-light: #9183dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5852cc",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 242.951,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51474,
    "c": 0.18294,
    "h": 280
  },
  "luminance": 0.12469
}

Semantic roles & 50–950 ramp

primary
#5852CC
secondary
#D4D6A4
accent
#DE4AD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5852CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva