#5852CF#5852CF

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

Color values

HEX#5852CF
RGBrgb(88, 82, 207)
HSLhsl(243, 57%, 57%)
HSVhsv(243, 60%, 81%)
CMYKcmyk(57.5%, 60.4%, 0%, 18.8%)
CIE-LABlab(42.17, 37.97, -64.11)
CIE-LCHlch(42.17, 74.51, 300.64°)
OKLaboklab(51.71% 0.0317 -0.1842)
OKLCHoklch(51.71% 0.187 279.8)
XYZxyz(18.3007, 12.6130, 60.4896)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852CF #C9CF52
analogous
#528BCF #5852CF #9752CF
triadic
#5852CF #CF5852 #52CF58
tetradic
#5852CF #CF528B #C9CF52 #52CF97
square
#5852CF #CF528B #C9CF52 #52CF97
split-complementary
#5852CF #CF9752 #8BCF52
monochromatic
#292482 #3831B2 #5852CF #8682DC #B4B2EA

Accessibility & contrast

On white

5.96
#5852CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5852CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852CF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852CF#FFFFFF#000000##FFFFFF
##5852CF1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#0E7089
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5852cf;
/* rgb */ color: rgb(88, 82, 207);
/* oklch */ color: oklch(51.7% 0.187 279.8);
Tailwind
colors: {
  custom: {
    50: '#9283df',
    500: '#5852cf',
    950: '#000000',
  },
}
SCSS
$custom: #5852cf;
$custom-light: #9283df;
$custom-dark: #000000;
JSON
{
  "hex": "#5852cf",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 242.88,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51709,
    "c": 0.18689,
    "h": 279.8
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#5852CF
secondary
#D6D8A5
accent
#E048D9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5852CF

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

Preview Lab → · Contrast checker → · Palette generator →

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