#5147C8#5147C8

#5147C8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.8% C 0.193 H 280.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5147C8
RGBrgb(81, 71, 200)
HSLhsl(245, 54%, 53%)
HSVhsv(245, 65%, 78%)
CMYKcmyk(59.5%, 64.5%, 0%, 21.6%)
CIE-LABlab(38.59, 41.15, -65.92)
CIE-LCHlch(38.59, 77.71, 301.98°)
OKLaboklab(48.79% 0.0334 -0.1897)
OKLCHoklch(48.79% 0.193 280)
XYZxyz(16.0686, 10.4248, 55.7978)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147C8 #BEC847
analogous
#477DC8 #5147C8 #9147C8
triadic
#5147C8 #C85147 #47C851
tetradic
#5147C8 #C8477D #BEC847 #47C891
square
#5147C8 #C8477D #BEC847 #47C891
split-complementary
#5147C8 #C89147 #7DC847
monochromatic
#282272 #3930A2 #5147C8 #7E76D6 #AAA5E4

Accessibility & contrast

On white

6.81
#5147C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5147C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147C8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147C8#FFFFFF#000000##FFFFFF
##5147C81.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5147c8;
/* rgb */ color: rgb(81, 71, 200);
/* oklch */ color: oklch(48.8% 0.193 280.0);
Tailwind
colors: {
  custom: {
    50: '#8e7bda',
    500: '#5147c8',
    950: '#000000',
  },
}
SCSS
$custom: #5147c8;
$custom-light: #8e7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5147c8",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 200
  },
  "hsl": {
    "h": 244.651,
    "s": 53.975,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48786,
    "c": 0.19265,
    "h": 280
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#5147C8
secondary
#CDD19A
accent
#DD4AD2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5147C8

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

Preview Lab → · Contrast checker → · Palette generator →

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