#5252FF#5252FF

#5252FF is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.4% C 0.248 H 274.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5252FF
RGBrgb(82, 82, 255)
HSLhsl(240, 100%, 66%)
HSVhsv(240, 68%, 100%)
CMYKcmyk(67.8%, 67.8%, 0%, 0%)
CIE-LABlab(45.70, 52.45, -85.54)
CIE-LCHlch(45.70, 100.34, 301.52°)
OKLaboklab(55.38% 0.0203 -0.2472)
OKLCHoklch(55.38% 0.248 274.7)
XYZxyz(24.5410, 15.0461, 96.1992)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252FF #FFFF52
analogous
#52A8FF #5252FF #A852FF
triadic
#5252FF #FF5252 #52FF52
tetradic
#5252FF #FF52A8 #FFFF52 #52FFA8
square
#5252FF #FF52A8 #FFFF52 #52FFA8
split-complementary
#5252FF #FFA852 #A8FF52
monochromatic
#0000D7 #1515FF #5252FF #8F8FFF #CCCCFF

Accessibility & contrast

On white

5.24
#5252FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5252FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252FF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252FF#FFFFFF#000000##FFFFFF
##5252FF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0064FC
Tritanopia (blue-blind)
#0081A2
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5252ff;
/* rgb */ color: rgb(82, 82, 255);
/* oklch */ color: oklch(55.4% 0.248 274.7);
Tailwind
colors: {
  custom: {
    50: '#9884ff',
    500: '#5252ff',
    950: '#000000',
  },
}
SCSS
$custom: #5252ff;
$custom-light: #9884ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ff",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 240,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.5538,
    "c": 0.24799,
    "h": 274.7
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#5252FF
secondary
#F3F3BA
accent
#E600E5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5252FF

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

Preview Lab → · Contrast checker → · Palette generator →

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