#5151D6#5151D6

#5151D6 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.199 H 276.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5151D6
RGBrgb(81, 81, 214)
HSLhsl(240, 62%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(62.1%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.98, 39.69, -68.47)
CIE-LCHlch(41.98, 79.14, 300.10°)
OKLaboklab(51.61% 0.0238 -0.1972)
OKLCHoklch(51.61% 0.199 276.9)
XYZxyz(18.4694, 12.4878, 65.0424)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D6 #D6D651
analogous
#5193D6 #5151D6 #9351D6
triadic
#5151D6 #D65151 #51D651
tetradic
#5151D6 #D65193 #D6D651 #51D693
square
#5151D6 #D65193 #D6D651 #51D693
split-complementary
#5151D6 #D69351 #93D651
monochromatic
#21218C #2D2DBD #5151D6 #8383E2 #B4B4ED

Accessibility & contrast

On white

6.00
#5151D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5151D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D6#FFFFFF#000000##FFFFFF
##5151D61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5151d6;
/* rgb */ color: rgb(81, 81, 214);
/* oklch */ color: oklch(51.6% 0.199 276.9);
Tailwind
colors: {
  custom: {
    50: '#9082e4',
    500: '#5151d6',
    950: '#000000',
  },
}
SCSS
$custom: #5151d6;
$custom-light: #9082e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d6",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 240,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51608,
    "c": 0.19862,
    "h": 276.9
  },
  "luminance": 0.12489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5151D6

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

Preview Lab → · Contrast checker → · Palette generator →

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