#5251E6#5251E6

#5251E6 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.219 H 276.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5251E6
RGBrgb(82, 81, 230)
HSLhsl(240, 75%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.3%, 64.8%, 0%, 9.8%)
CIE-LABlab(43.35, 45.03, -75.36)
CIE-LCHlch(43.35, 87.79, 300.86°)
OKLaboklab(53.02% 0.0237 -0.2174)
OKLCHoklch(53.02% 0.219 276.2)
XYZxyz(20.7004, 13.3901, 76.3412)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E6 #E5E651
analogous
#519AE6 #5251E6 #9C51E6
triadic
#5251E6 #E65251 #51E652
tetradic
#5251E6 #E6519A #E5E651 #51E69C
square
#5251E6 #E6519A #E5E651 #51E69C
split-complementary
#5251E6 #E69C51 #9AE651
monochromatic
#1918A5 #211FDA #5251E6 #8787EE #BCBCF5

Accessibility & contrast

On white

5.71
#5251E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5251E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251E6
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251E6#FFFFFF#000000##FFFFFF
##5251E61.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEB
Deuteranopia (green-blind)
#0060E3
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5251e6;
/* rgb */ color: rgb(82, 81, 230);
/* oklch */ color: oklch(53.0% 0.219 276.2);
Tailwind
colors: {
  custom: {
    50: '#9382ef',
    500: '#5251e6',
    950: '#000000',
  },
}
SCSS
$custom: #5251e6;
$custom-light: #9382ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e6",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 240.403,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53023,
    "c": 0.21865,
    "h": 276.2
  },
  "luminance": 0.13392
}

Semantic roles & 50–950 ramp

primary
#5251E6
secondary
#E5E5AD
accent
#D70ED6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5251E6

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

Preview Lab → · Contrast checker → · Palette generator →

#5251E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva