#5151E6#5151E6

#5151E6 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.0% C 0.219 H 275.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5151E6
RGBrgb(81, 81, 230)
HSLhsl(240, 75%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.8%, 64.8%, 0%, 9.8%)
CIE-LABlab(43.28, 44.89, -75.47)
CIE-LCHlch(43.28, 87.81, 300.75°)
OKLaboklab(52.96% 0.0226 -0.2177)
OKLCHoklch(52.96% 0.219 275.9)
XYZxyz(20.6140, 13.3456, 76.3372)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E6 #E6E651
analogous
#519BE6 #5151E6 #9B51E6
triadic
#5151E6 #E65151 #51E651
tetradic
#5151E6 #E6519B #E6E651 #51E69B
square
#5151E6 #E6519B #E6E651 #51E69B
split-complementary
#5151E6 #E69B51 #9BE651
monochromatic
#1818A5 #1F1FDA #5151E6 #8787EE #BCBCF5

Accessibility & contrast

On white

5.72
#5151E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5151E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E6
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E6#FFFFFF#000000##FFFFFF
##5151E61.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5151e6;
/* rgb */ color: rgb(81, 81, 230);
/* oklch */ color: oklch(53.0% 0.219 275.9);
Tailwind
colors: {
  custom: {
    50: '#9382ef',
    500: '#5151e6',
    950: '#000000',
  },
}
SCSS
$custom: #5151e6;
$custom-light: #9382ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e6",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 240,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52958,
    "c": 0.21887,
    "h": 275.9
  },
  "luminance": 0.13347
}

Semantic roles & 50–950 ramp

primary
#5151E6
secondary
#E5E5AD
accent
#D70ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #5151E6

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

Preview Lab → · Contrast checker → · Palette generator →

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