#5152D6#5152D6

#5152D6 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.197 H 276.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5152D6
RGBrgb(81, 82, 214)
HSLhsl(240, 62%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(62.1%, 61.7%, 0%, 16.1%)
CIE-LABlab(42.21, 39.08, -68.09)
CIE-LCHlch(42.21, 78.51, 299.85°)
OKLaboklab(51.78% 0.0229 -0.1961)
OKLCHoklch(51.78% 0.197 276.7)
XYZxyz(18.5443, 12.6375, 65.0673)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D6 #D6D551
analogous
#5194D6 #5152D6 #9251D6
triadic
#5152D6 #D65152 #52D651
tetradic
#5152D6 #D65194 #D6D551 #51D692
square
#5152D6 #D65194 #D6D551 #51D692
split-complementary
#5152D6 #D69251 #94D651
monochromatic
#21228C #2D2EBD #5152D6 #8383E2 #B4B4ED

Accessibility & contrast

On white

5.95
#5152D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5152D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D6
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D6#FFFFFF#000000##FFFFFF
##5152D61.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5152d6;
/* rgb */ color: rgb(81, 82, 214);
/* oklch */ color: oklch(51.8% 0.197 276.7);
Tailwind
colors: {
  custom: {
    50: '#9083e4',
    500: '#5152d6',
    950: '#000000',
  },
}
SCSS
$custom: #5152d6;
$custom-light: #9083e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d6",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 239.549,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51777,
    "c": 0.19741,
    "h": 276.7
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#5152D6
secondary
#DCDCA7
accent
#E443E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152D6

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

Preview Lab → · Contrast checker → · Palette generator →

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