#5852CA#5852CA

#5852CA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.180 H 280.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5852CA
RGBrgb(88, 82, 202)
HSLhsl(243, 53%, 56%)
HSVhsv(243, 59%, 79%)
CMYKcmyk(56.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(41.80, 36.38, -61.83)
CIE-LCHlch(41.80, 71.74, 300.47°)
OKLaboklab(51.32% 0.0319 -0.1775)
OKLCHoklch(51.32% 0.18 280.2)
XYZxyz(17.6991, 12.3724, 57.3211)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852CA #C4CA52
analogous
#5288CA #5852CA #9452CA
triadic
#5852CA #CA5852 #52CA58
tetradic
#5852CA #CA5288 #C4CA52 #52CA94
square
#5852CA #CA5288 #C4CA52 #52CA94
split-complementary
#5852CA #CA9452 #88CA52
monochromatic
#2A267C #3A34AB #5852CA #8581D8 #B2B0E7

Accessibility & contrast

On white

6.04
#5852CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5852CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852CA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852CA#FFFFFF#000000##FFFFFF
##5852CA1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#1A6F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5852ca;
/* rgb */ color: rgb(88, 82, 202);
/* oklch */ color: oklch(51.3% 0.180 280.2);
Tailwind
colors: {
  custom: {
    50: '#9183db',
    500: '#5852ca',
    950: '#000000',
  },
}
SCSS
$custom: #5852ca;
$custom-light: #9183db;
$custom-dark: #000000;
JSON
{
  "hex": "#5852ca",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 243,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51318,
    "c": 0.18031,
    "h": 280.2
  },
  "luminance": 0.12374
}

Semantic roles & 50–950 ramp

primary
#5852CA
secondary
#D2D5A3
accent
#DD4BD5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852CA

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

Preview Lab → · Contrast checker → · Palette generator →

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