#5252DA#5252DA

#5252DA is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.2% C 0.202 H 276.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5252DA
RGBrgb(82, 82, 218)
HSLhsl(240, 65%, 59%)
HSVhsv(240, 62%, 85%)
CMYKcmyk(62.4%, 62.4%, 0%, 14.5%)
CIE-LABlab(42.60, 40.54, -69.76)
CIE-LCHlch(42.60, 80.68, 300.17°)
OKLaboklab(52.17% 0.0239 -0.2009)
OKLCHoklch(52.17% 0.202 276.8)
XYZxyz(19.1477, 12.8888, 67.7948)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252DA #DADA52
analogous
#5296DA #5252DA #9652DA
triadic
#5252DA #DA5252 #52DA52
tetradic
#5252DA #DA5296 #DADA52 #52DA96
square
#5252DA #DA5296 #DADA52 #52DA96
split-complementary
#5252DA #DA9652 #96DA52
monochromatic
#1F1F92 #2A2AC5 #5252DA #8484E5 #B7B7F0

Accessibility & contrast

On white

5.87
#5252DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5252DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252DA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252DA#FFFFFF#000000##FFFFFF
##5252DA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005FD7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5252da;
/* rgb */ color: rgb(82, 82, 218);
/* oklch */ color: oklch(52.2% 0.202 276.8);
Tailwind
colors: {
  custom: {
    50: '#9183e6',
    500: '#5252da',
    950: '#000000',
  },
}
SCSS
$custom: #5252da;
$custom-light: #9183e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5252da",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 240,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52174,
    "c": 0.20233,
    "h": 276.8
  },
  "luminance": 0.1289
}

Semantic roles & 50–950 ramp

primary
#5252DA
secondary
#DFDFA9
accent
#E840E8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252DA

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

Preview Lab → · Contrast checker → · Palette generator →

#5252DA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva