#5147D2#5147D2

#5147D2 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.6% C 0.205 H 279.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5147D2
RGBrgb(81, 71, 210)
HSLhsl(244, 61%, 55%)
HSVhsv(244, 66%, 82%)
CMYKcmyk(61.4%, 66.2%, 0%, 17.6%)
CIE-LABlab(39.42, 44.33, -70.35)
CIE-LCHlch(39.42, 83.15, 302.22°)
OKLaboklab(49.65% 0.0323 -0.2027)
OKLCHoklch(49.65% 0.205 279.1)
XYZxyz(17.2757, 10.9076, 62.1553)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D2 #C8D247
analogous
#4782D2 #5147D2 #9747D2
triadic
#5147D2 #D25147 #47D251
tetradic
#5147D2 #D24782 #C8D247 #47D297
square
#5147D2 #D24782 #C8D247 #47D297
split-complementary
#5147D2 #D29747 #82D247
monochromatic
#261F7F #352BB1 #5147D2 #8078DE #AEA9EA

Accessibility & contrast

On white

6.60
#5147D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5147D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D2#FFFFFF#000000##FFFFFF
##5147D21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5147d2;
/* rgb */ color: rgb(81, 71, 210);
/* oklch */ color: oklch(49.6% 0.205 279.1);
Tailwind
colors: {
  custom: {
    50: '#907be1',
    500: '#5147d2',
    950: '#000000',
  },
}
SCSS
$custom: #5147d2;
$custom-light: #907be1;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d2",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 244.317,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49645,
    "c": 0.20529,
    "h": 279.1
  },
  "luminance": 0.10909
}

Semantic roles & 50–950 ramp

primary
#5147D2
secondary
#D3D89D
accent
#E444D8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5147D2

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

Preview Lab → · Contrast checker → · Palette generator →

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