#5852CE#5852CE

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

Color values

HEX#5852CE
RGBrgb(88, 82, 206)
HSLhsl(243, 56%, 56%)
HSVhsv(243, 60%, 81%)
CMYKcmyk(57.3%, 60.2%, 0%, 19.2%)
CIE-LABlab(42.10, 37.65, -63.66)
CIE-LCHlch(42.10, 73.96, 300.60°)
OKLaboklab(51.63% 0.0317 -0.1828)
OKLCHoklch(51.63% 0.186 279.8)
XYZxyz(18.1789, 12.5643, 59.8478)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852CE #C8CE52
analogous
#528ACE #5852CE #9652CE
triadic
#5852CE #CE5852 #52CE58
tetradic
#5852CE #CE528A #C8CE52 #52CE96
square
#5852CE #CE528A #C8CE52 #52CE96
split-complementary
#5852CE #CE9652 #8ACE52
monochromatic
#292581 #3832B1 #5852CE #8682DC #B4B1E9

Accessibility & contrast

On white

5.98
#5852CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5852CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852CE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852CE#FFFFFF#000000##FFFFFF
##5852CE1.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)
#0068D2
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#117088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5852ce;
/* rgb */ color: rgb(88, 82, 206);
/* oklch */ color: oklch(51.6% 0.186 279.8);
Tailwind
colors: {
  custom: {
    50: '#9283de',
    500: '#5852ce',
    950: '#000000',
  },
}
SCSS
$custom: #5852ce;
$custom-light: #9283de;
$custom-dark: #000000;
JSON
{
  "hex": "#5852ce",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 242.903,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51631,
    "c": 0.18557,
    "h": 279.8
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#5852CE
secondary
#D5D7A4
accent
#DF49D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852CE

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

Preview Lab → · Contrast checker → · Palette generator →

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