#5147D9#5147D9

#5147D9 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.3% C 0.214 H 278.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5147D9
RGBrgb(81, 71, 217)
HSLhsl(244, 66%, 56%)
HSVhsv(244, 67%, 85%)
CMYKcmyk(62.7%, 67.3%, 0%, 14.9%)
CIE-LABlab(40.02, 46.54, -73.39)
CIE-LCHlch(40.02, 86.91, 302.38°)
OKLaboklab(50.26% 0.0314 -0.2117)
OKLCHoklch(50.26% 0.214 278.4)
XYZxyz(18.1669, 11.2641, 66.8490)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D9 #CFD947
analogous
#4786D9 #5147D9 #9A47D9
triadic
#5147D9 #D95147 #47D951
tetradic
#5147D9 #D94786 #CFD947 #47D99A
square
#5147D9 #D94786 #CFD947 #47D99A
split-complementary
#5147D9 #D99A47 #86D947
monochromatic
#241C89 #3127BC #5147D9 #817AE3 #B1ACEE

Accessibility & contrast

On white

6.46
#5147D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5147D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D9
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D9#FFFFFF#000000##FFFFFF
##5147D91.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5147d9;
/* rgb */ color: rgb(81, 71, 217);
/* oklch */ color: oklch(50.3% 0.214 278.4);
Tailwind
colors: {
  custom: {
    50: '#917be6',
    500: '#5147d9',
    950: '#000000',
  },
}
SCSS
$custom: #5147d9;
$custom-light: #917be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d9",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 244.11,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.21398,
    "h": 278.4
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#5147D9
secondary
#D8DCA0
accent
#E93FDD
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147D9

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

Preview Lab → · Contrast checker → · Palette generator →

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