#5152E6#5152E6

#5152E6 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.1% C 0.218 H 275.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5152E6
RGBrgb(81, 82, 230)
HSLhsl(240, 75%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.8%, 64.3%, 0%, 9.8%)
CIE-LABlab(43.50, 44.30, -75.11)
CIE-LCHlch(43.50, 87.20, 300.54°)
OKLaboklab(53.12% 0.0218 -0.2166)
OKLCHoklch(53.12% 0.218 275.7)
XYZxyz(20.6889, 13.4953, 76.3621)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152E6 #E6E551
analogous
#519CE6 #5152E6 #9A51E6
triadic
#5152E6 #E65152 #52E651
tetradic
#5152E6 #E6519C #E6E551 #51E69A
square
#5152E6 #E6519C #E6E551 #51E69A
split-complementary
#5152E6 #E69A51 #9CE651
monochromatic
#1819A5 #1F21DA #5152E6 #8787EE #BCBCF5

Accessibility & contrast

On white

5.68
#5152E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5152E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152E6
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152E6#FFFFFF#000000##FFFFFF
##5152E61.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5152e6;
/* rgb */ color: rgb(81, 82, 230);
/* oklch */ color: oklch(53.1% 0.218 275.7);
Tailwind
colors: {
  custom: {
    50: '#9283ef',
    500: '#5152e6',
    950: '#000000',
  },
}
SCSS
$custom: #5152e6;
$custom-light: #9283ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5152e6",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 239.597,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53119,
    "c": 0.21775,
    "h": 275.7
  },
  "luminance": 0.13497
}

Semantic roles & 50–950 ramp

primary
#5152E6
secondary
#E5E5AD
accent
#D60ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5152E6

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

Preview Lab → · Contrast checker → · Palette generator →

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