#5147E2#5147E2

#5147E2 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.1% C 0.225 H 277.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5147E2
RGBrgb(81, 71, 226)
HSLhsl(244, 73%, 58%)
HSVhsv(244, 69%, 89%)
CMYKcmyk(64.2%, 68.6%, 0%, 11.4%)
CIE-LABlab(40.81, 49.37, -77.25)
CIE-LCHlch(40.81, 91.68, 302.59°)
OKLaboklab(51.07% 0.0302 -0.2229)
OKLCHoklch(51.07% 0.225 277.7)
XYZxyz(19.3696, 11.7452, 73.1831)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147E2 #D8E247
analogous
#478AE2 #5147E2 #9E47E2
triadic
#5147E2 #E25147 #47E251
tetradic
#5147E2 #E2478A #D8E247 #47E29E
square
#5147E2 #E2478A #D8E247 #47E29E
split-complementary
#5147E2 #E29E47 #8AE247
monochromatic
#201897 #2B20CC #5147E2 #837CEA #B5B1F3

Accessibility & contrast

On white

6.27
#5147E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5147E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147E2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147E2#FFFFFF#000000##FFFFFF
##5147E21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#00718F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5147e2;
/* rgb */ color: rgb(81, 71, 226);
/* oklch */ color: oklch(51.1% 0.225 277.7);
Tailwind
colors: {
  custom: {
    50: '#937cec',
    500: '#5147e2',
    950: '#000000',
  },
}
SCSS
$custom: #5147e2;
$custom-light: #937cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5147e2",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 226
  },
  "hsl": {
    "h": 243.871,
    "s": 72.77,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51066,
    "c": 0.22496,
    "h": 277.7
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#5147E2
secondary
#DDE1A4
accent
#EF38E4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5147E2

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

Preview Lab → · Contrast checker → · Palette generator →

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