#5147D7#5147D7

#5147D7 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.1% C 0.212 H 278.6°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5147D7
RGBrgb(81, 71, 215)
HSLhsl(244, 64%, 56%)
HSVhsv(244, 67%, 84%)
CMYKcmyk(62.3%, 67%, 0%, 15.7%)
CIE-LABlab(39.85, 45.91, -72.53)
CIE-LCHlch(39.85, 85.84, 302.33°)
OKLaboklab(50.08% 0.0317 -0.2091)
OKLCHoklch(50.08% 0.212 278.6)
XYZxyz(17.9084, 11.1607, 65.4873)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D7 #CDD747
analogous
#4785D7 #5147D7 #9947D7
triadic
#5147D7 #D75147 #47D751
tetradic
#5147D7 #D74785 #CDD747 #47D799
square
#5147D7 #D74785 #CDD747 #47D799
split-complementary
#5147D7 #D79947 #85D747
monochromatic
#251D86 #3228B9 #5147D7 #8179E2 #B0ACED

Accessibility & contrast

On white

6.50
#5147D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5147D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D7
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D7#FFFFFF#000000##FFFFFF
##5147D71.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0058D4
Tritanopia (blue-blind)
#006D89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5147d7;
/* rgb */ color: rgb(81, 71, 215);
/* oklch */ color: oklch(50.1% 0.212 278.6);
Tailwind
colors: {
  custom: {
    50: '#917be4',
    500: '#5147d7',
    950: '#000000',
  },
}
SCSS
$custom: #5147d7;
$custom-light: #917be4;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d7",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 244.167,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50083,
    "c": 0.21151,
    "h": 278.6
  },
  "luminance": 0.11162
}

Semantic roles & 50–950 ramp

primary
#5147D7
secondary
#D7DB9F
accent
#E741DC
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147D7

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

Preview Lab → · Contrast checker → · Palette generator →

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