#5150E2#5150E2

#5150E2 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.5% C 0.215 H 276.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5150E2
RGBrgb(81, 80, 226)
HSLhsl(240, 72%, 60%)
HSVhsv(240, 65%, 89%)
CMYKcmyk(64.2%, 64.6%, 0%, 11.4%)
CIE-LABlab(42.73, 44.19, -74.10)
CIE-LCHlch(42.73, 86.28, 300.81°)
OKLaboklab(52.45% 0.0237 -0.2137)
OKLCHoklch(52.45% 0.215 276.3)
XYZxyz(19.9850, 12.9760, 73.3882)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5150E2 #E1E250
analogous
#5098E2 #5150E2 #9A50E2
triadic
#5150E2 #E25150 #50E251
tetradic
#5150E2 #E25098 #E1E250 #50E29A
square
#5150E2 #E25098 #E1E250 #50E29A
split-complementary
#5150E2 #E29A50 #98E250
monochromatic
#1B1A9E #2423D2 #5150E2 #8584EB #B9B9F3

Accessibility & contrast

On white

5.84
#5150E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5150E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5150E2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5150E2#FFFFFF#000000##FFFFFF
##5150E21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5150e2;
/* rgb */ color: rgb(81, 80, 226);
/* oklch */ color: oklch(52.5% 0.215 276.3);
Tailwind
colors: {
  custom: {
    50: '#9282ec',
    500: '#5150e2',
    950: '#000000',
  },
}
SCSS
$custom: #5150e2;
$custom-light: #9282ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5150e2",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 226
  },
  "hsl": {
    "h": 240.411,
    "s": 71.569,
    "l": 60
  },
  "oklch": {
    "l": 0.52454,
    "c": 0.21502,
    "h": 276.3
  },
  "luminance": 0.12978
}

Semantic roles & 50–950 ramp

primary
#5150E2
secondary
#E3E3AB
accent
#EE39ED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5150E2

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

Preview Lab → · Contrast checker → · Palette generator →

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