#5151E7#5151E7

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

Color values

HEX#5151E7
RGBrgb(81, 81, 231)
HSLhsl(240, 76%, 61%)
HSVhsv(240, 65%, 91%)
CMYKcmyk(64.9%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.36, 45.22, -75.90)
CIE-LCHlch(43.36, 88.35, 300.78°)
OKLaboklab(53.04% 0.0225 -0.219)
OKLCHoklch(53.04% 0.22 275.9)
XYZxyz(20.7548, 13.4019, 77.0789)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E7 #E7E751
analogous
#519CE7 #5151E7 #9C51E7
triadic
#5151E7 #E75151 #51E751
tetradic
#5151E7 #E7519C #E7E751 #51E79C
square
#5151E7 #E7519C #E7E751 #51E79C
split-complementary
#5151E7 #E79C51 #9CE751
monochromatic
#1717A7 #1E1EDC #5151E7 #8787EE #BDBDF6

Accessibility & contrast

On white

5.71
#5151E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5151E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E7#FFFFFF#000000##FFFFFF
##5151E71.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#0060E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5151e7;
/* rgb */ color: rgb(81, 81, 231);
/* oklch */ color: oklch(53.0% 0.220 275.9);
Tailwind
colors: {
  custom: {
    50: '#9382f0',
    500: '#5151e7',
    950: '#000000',
  },
}
SCSS
$custom: #5151e7;
$custom-light: #9382f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e7",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 240,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53044,
    "c": 0.22012,
    "h": 275.9
  },
  "luminance": 0.13404
}

Semantic roles & 50–950 ramp

primary
#5151E7
secondary
#E6E6AE
accent
#D80ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5151E7

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

Preview Lab → · Contrast checker → · Palette generator →

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