#5852D2#5852D2

#5852D2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.191 H 279.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5852D2
RGBrgb(88, 82, 210)
HSLhsl(243, 59%, 57%)
HSVhsv(243, 61%, 82%)
CMYKcmyk(58.1%, 61%, 0%, 17.6%)
CIE-LABlab(42.40, 38.93, -65.47)
CIE-LCHlch(42.40, 76.17, 300.74°)
OKLaboklab(51.95% 0.0316 -0.1882)
OKLCHoklch(51.95% 0.191 279.5)
XYZxyz(18.6710, 12.7611, 62.4395)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852D2 #CCD252
analogous
#528CD2 #5852D2 #9852D2
triadic
#5852D2 #D25852 #52D258
tetradic
#5852D2 #D2528C #CCD252 #52D298
square
#5852D2 #D2528C #CCD252 #52D298
split-complementary
#5852D2 #D29852 #8CD252
monochromatic
#282387 #3630B7 #5852D2 #8783DF #B6B3EB

Accessibility & contrast

On white

5.91
#5852D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5852D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852D2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852D2#FFFFFF#000000##FFFFFF
##5852D21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#03718A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5852d2;
/* rgb */ color: rgb(88, 82, 210);
/* oklch */ color: oklch(51.9% 0.191 279.5);
Tailwind
colors: {
  custom: {
    50: '#9283e1',
    500: '#5852d2',
    950: '#000000',
  },
}
SCSS
$custom: #5852d2;
$custom-light: #9283e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5852d2",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 242.813,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51947,
    "c": 0.1908,
    "h": 279.5
  },
  "luminance": 0.12762
}

Semantic roles & 50–950 ramp

primary
#5852D2
secondary
#D7DAA6
accent
#E246DB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852D2

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

Preview Lab → · Contrast checker → · Palette generator →

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