#5152D7#5152D7

#5152D7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.199 H 276.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5152D7
RGBrgb(81, 82, 215)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(62.3%, 61.9%, 0%, 15.7%)
CIE-LABlab(42.29, 39.41, -68.54)
CIE-LCHlch(42.29, 79.06, 299.90°)
OKLaboklab(51.86% 0.0229 -0.1974)
OKLCHoklch(51.86% 0.199 276.6)
XYZxyz(18.6724, 12.6887, 65.7420)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D7 #D7D651
analogous
#5195D7 #5152D7 #9351D7
triadic
#5152D7 #D75152 #52D751
tetradic
#5152D7 #D75195 #D7D651 #51D793
square
#5152D7 #D75195 #D7D651 #51D793
split-complementary
#5152D7 #D79351 #95D751
monochromatic
#20218D #2C2DBF #5152D7 #8383E2 #B5B5EE

Accessibility & contrast

On white

5.94
#5152D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5152D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D7#FFFFFF#000000##FFFFFF
##5152D71.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5152d7;
/* rgb */ color: rgb(81, 82, 215);
/* oklch */ color: oklch(51.9% 0.199 276.6);
Tailwind
colors: {
  custom: {
    50: '#9083e4',
    500: '#5152d7',
    950: '#000000',
  },
}
SCSS
$custom: #5152d7;
$custom-light: #9083e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d7",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 239.552,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51859,
    "c": 0.1987,
    "h": 276.6
  },
  "luminance": 0.1269
}

Semantic roles & 50–950 ramp

primary
#5152D7
secondary
#DDDCA7
accent
#E442E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152D7

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

Preview Lab → · Contrast checker → · Palette generator →

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