#5152E7#5152E7

#5152E7 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.2% C 0.219 H 275.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5152E7
RGBrgb(81, 82, 231)
HSLhsl(240, 76%, 61%)
HSVhsv(240, 65%, 91%)
CMYKcmyk(64.9%, 64.5%, 0%, 9.4%)
CIE-LABlab(43.58, 44.63, -75.54)
CIE-LCHlch(43.58, 87.74, 300.58°)
OKLaboklab(53.2% 0.0217 -0.2179)
OKLCHoklch(53.2% 0.219 275.7)
XYZxyz(20.8297, 13.5516, 77.1038)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152E7 #E7E651
analogous
#519DE7 #5152E7 #9B51E7
triadic
#5152E7 #E75152 #52E751
tetradic
#5152E7 #E7519D #E7E651 #51E79B
square
#5152E7 #E7519D #E7E651 #51E79B
split-complementary
#5152E7 #E79B51 #9DE751
monochromatic
#1718A7 #1E20DC #5152E7 #8787EE #BDBDF6

Accessibility & contrast

On white

5.66
#5152E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5152E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152E7
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152E7#FFFFFF#000000##FFFFFF
##5152E71.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0060E4
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5152e7;
/* rgb */ color: rgb(81, 82, 231);
/* oklch */ color: oklch(53.2% 0.219 275.7);
Tailwind
colors: {
  custom: {
    50: '#9383f0',
    500: '#5152e7',
    950: '#000000',
  },
}
SCSS
$custom: #5152e7;
$custom-light: #9383f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5152e7",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 239.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53204,
    "c": 0.21899,
    "h": 275.7
  },
  "luminance": 0.13553
}

Semantic roles & 50–950 ramp

primary
#5152E7
secondary
#E6E6AE
accent
#D70ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5152E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5152E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva