#5152DE#5152DE

#5152DE is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.4% C 0.208 H 276.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5152DE
RGBrgb(81, 82, 222)
HSLhsl(240, 68%, 59%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(63.5%, 63.1%, 0%, 12.9%)
CIE-LABlab(42.85, 41.70, -71.63)
CIE-LCHlch(42.85, 82.88, 300.21°)
OKLaboklab(52.44% 0.0224 -0.2064)
OKLCHoklch(52.44% 0.208 276.2)
XYZxyz(19.5911, 13.0562, 70.5808)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152DE #DEDD51
analogous
#5199DE #5152DE #9651DE
triadic
#5152DE #DE5152 #52DE51
tetradic
#5152DE #DE5199 #DEDD51 #51DE96
square
#5152DE #DE5199 #DEDD51 #51DE96
split-complementary
#5152DE #DE9651 #99DE51
monochromatic
#1D1E98 #2728CB #5152DE #8485E8 #B8B8F2

Accessibility & contrast

On white

5.81
#5152DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5152DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152DE
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152DE#FFFFFF#000000##FFFFFF
##5152DE1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#005FDB
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5152de;
/* rgb */ color: rgb(81, 82, 222);
/* oklch */ color: oklch(52.4% 0.208 276.2);
Tailwind
colors: {
  custom: {
    50: '#9183e9',
    500: '#5152de',
    950: '#000000',
  },
}
SCSS
$custom: #5152de;
$custom-light: #9183e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5152de",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 239.574,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52441,
    "c": 0.20767,
    "h": 276.2
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#5152DE
secondary
#E1E0AA
accent
#EA3DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152DE

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

Preview Lab → · Contrast checker → · Palette generator →

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