#5252D7#5252D7

#5252D7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.198 H 277.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5252D7
RGBrgb(82, 82, 215)
HSLhsl(240, 62%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(61.9%, 61.9%, 0%, 15.7%)
CIE-LABlab(42.36, 39.57, -68.43)
CIE-LCHlch(42.36, 79.04, 300.04°)
OKLaboklab(51.93% 0.0241 -0.197)
OKLCHoklch(51.93% 0.198 277)
XYZxyz(18.7587, 12.7332, 65.7460)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252D7 #D7D752
analogous
#5294D7 #5252D7 #9452D7
triadic
#5252D7 #D75252 #52D752
tetradic
#5252D7 #D75294 #D7D752 #52D794
square
#5252D7 #D75294 #D7D752 #52D794
split-complementary
#5252D7 #D79452 #94D752
monochromatic
#21218E #2C2CC0 #5252D7 #8484E2 #B5B5EE

Accessibility & contrast

On white

5.92
#5252D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5252D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252D7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252D7#FFFFFF#000000##FFFFFF
##5252D71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5252d7;
/* rgb */ color: rgb(82, 82, 215);
/* oklch */ color: oklch(51.9% 0.198 277.0);
Tailwind
colors: {
  custom: {
    50: '#9083e4',
    500: '#5252d7',
    950: '#000000',
  },
}
SCSS
$custom: #5252d7;
$custom-light: #9083e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5252d7",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 240,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.19848,
    "h": 277
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#5252D7
secondary
#DDDDA8
accent
#E642E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252D7

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

Preview Lab → · Contrast checker → · Palette generator →

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