#5252EC#5252EC

#5252EC is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.225 H 275.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5252EC
RGBrgb(82, 82, 236)
HSLhsl(240, 80%, 62%)
HSVhsv(240, 65%, 93%)
CMYKcmyk(65.3%, 65.3%, 0%, 7.5%)
CIE-LABlab(44.06, 46.38, -77.57)
CIE-LCHlch(44.06, 90.38, 300.87°)
OKLaboklab(53.7% 0.0224 -0.2238)
OKLCHoklch(53.7% 0.225 275.7)
XYZxyz(21.6323, 13.8827, 80.8802)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252EC #ECEC52
analogous
#529FEC #5252EC #9F52EC
triadic
#5252EC #EC5252 #52EC52
tetradic
#5252EC #EC529F #ECEC52 #52EC9F
square
#5252EC #EC529F #ECEC52 #52EC9F
split-complementary
#5252EC #EC9F52 #9FEC52
monochromatic
#1313B0 #1B1BE6 #5252EC #8989F2 #C0C0F8

Accessibility & contrast

On white

5.56
#5252EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5252EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252EC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252EC#FFFFFF#000000##FFFFFF
##5252EC1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0061E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5252ec;
/* rgb */ color: rgb(82, 82, 236);
/* oklch */ color: oklch(53.7% 0.225 275.7);
Tailwind
colors: {
  custom: {
    50: '#9483f3',
    500: '#5252ec',
    950: '#000000',
  },
}
SCSS
$custom: #5252ec;
$custom-light: #9483f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ec",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 240,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.537,
    "c": 0.22497,
    "h": 275.7
  },
  "luminance": 0.13885
}

Semantic roles & 50–950 ramp

primary
#5252EC
secondary
#E9E9B1
accent
#DD09DD
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5252EC

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

Preview Lab → · Contrast checker → · Palette generator →

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