#5150E5#5150E5

#5150E5 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.7% C 0.219 H 276.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5150E5
RGBrgb(81, 80, 229)
HSLhsl(240, 74%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.6%, 65.1%, 0%, 10.2%)
CIE-LABlab(42.98, 45.16, -75.40)
CIE-LCHlch(42.98, 87.88, 300.92°)
OKLaboklab(52.71% 0.0234 -0.2175)
OKLCHoklch(52.71% 0.219 276.1)
XYZxyz(20.4002, 13.1421, 75.5752)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5150E5 #E4E550
analogous
#5099E5 #5150E5 #9C50E5
triadic
#5150E5 #E55150 #50E551
tetradic
#5150E5 #E55099 #E4E550 #50E59C
square
#5150E5 #E55099 #E4E550 #50E59C
split-complementary
#5150E5 #E59C50 #99E550
monochromatic
#1918A2 #2120D8 #5150E5 #8685ED #BBBBF5

Accessibility & contrast

On white

5.79
#5150E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5150E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5150E5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5150E5#FFFFFF#000000##FFFFFF
##5150E51.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#005FE2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5150e5;
/* rgb */ color: rgb(81, 80, 229);
/* oklch */ color: oklch(52.7% 0.219 276.1);
Tailwind
colors: {
  custom: {
    50: '#9282ee',
    500: '#5150e5',
    950: '#000000',
  },
}
SCSS
$custom: #5150e5;
$custom-light: #9282ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5150e5",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 229
  },
  "hsl": {
    "h": 240.403,
    "s": 74.129,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52712,
    "c": 0.21876,
    "h": 276.1
  },
  "luminance": 0.13144
}

Semantic roles & 50–950 ramp

primary
#5150E5
secondary
#E4E5AC
accent
#D60FD5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #5150E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5150E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva