#5852CD#5852CD

#5852CD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.184 H 279.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5852CD
RGBrgb(88, 82, 205)
HSLhsl(243, 55%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(57.1%, 60%, 0%, 19.6%)
CIE-LABlab(42.02, 37.33, -63.20)
CIE-LCHlch(42.02, 73.41, 300.57°)
OKLaboklab(51.55% 0.0318 -0.1815)
OKLCHoklch(51.55% 0.184 279.9)
XYZxyz(18.0578, 12.5159, 59.2100)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852CD #C7CD52
analogous
#528ACD #5852CD #9652CD
triadic
#5852CD #CD5852 #52CD58
tetradic
#5852CD #CD528A #C7CD52 #52CD96
square
#5852CD #CD528A #C7CD52 #52CD96
split-complementary
#5852CD #CD9652 #8ACD52
monochromatic
#292580 #3933AF #5852CD #8681DB #B4B1E8

Accessibility & contrast

On white

5.99
#5852CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5852CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852CD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852CD#FFFFFF#000000##FFFFFF
##5852CD1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#147088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5852cd;
/* rgb */ color: rgb(88, 82, 205);
/* oklch */ color: oklch(51.6% 0.184 279.9);
Tailwind
colors: {
  custom: {
    50: '#9283dd',
    500: '#5852cd',
    950: '#000000',
  },
}
SCSS
$custom: #5852cd;
$custom-light: #9283dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5852cd",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 242.927,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51552,
    "c": 0.18427,
    "h": 279.9
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#5852CD
secondary
#D4D7A4
accent
#DE49D7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852CD

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

Preview Lab → · Contrast checker → · Palette generator →

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