#5147D5#5147D5

#5147D5 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.9% C 0.209 H 278.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5147D5
RGBrgb(81, 71, 213)
HSLhsl(244, 63%, 56%)
HSVhsv(244, 67%, 84%)
CMYKcmyk(62%, 66.7%, 0%, 16.5%)
CIE-LABlab(39.68, 45.28, -71.66)
CIE-LCHlch(39.68, 84.77, 302.29°)
OKLaboklab(49.91% 0.0319 -0.2066)
OKLCHoklch(49.91% 0.209 278.8)
XYZxyz(17.6530, 11.0585, 64.1421)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D5 #CBD547
analogous
#4784D5 #5147D5 #9847D5
triadic
#5147D5 #D55147 #47D551
tetradic
#5147D5 #D54784 #CBD547 #47D598
square
#5147D5 #D54784 #CBD547 #47D598
split-complementary
#5147D5 #D59847 #84D547
monochromatic
#251E84 #3329B5 #5147D5 #8079E0 #AFABEC

Accessibility & contrast

On white

6.54
#5147D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5147D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D5
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D5#FFFFFF#000000##FFFFFF
##5147D51.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5147d5;
/* rgb */ color: rgb(81, 71, 213);
/* oklch */ color: oklch(49.9% 0.209 278.8);
Tailwind
colors: {
  custom: {
    50: '#907be3',
    500: '#5147d5',
    950: '#000000',
  },
}
SCSS
$custom: #5147d5;
$custom-light: #907be3;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d5",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 244.225,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.20902,
    "h": 278.8
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#5147D5
secondary
#D5D99E
accent
#E642DA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147D5

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

Preview Lab → · Contrast checker → · Palette generator →

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