#5147C2#5147C2

#5147C2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.3% C 0.185 H 280.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5147C2
RGBrgb(81, 71, 194)
HSLhsl(245, 50%, 52%)
HSVhsv(245, 63%, 76%)
CMYKcmyk(58.2%, 63.4%, 0%, 23.9%)
CIE-LABlab(38.11, 39.24, -63.22)
CIE-LCHlch(38.11, 74.40, 301.83°)
OKLaboklab(48.28% 0.0339 -0.1818)
OKLCHoklch(48.28% 0.185 280.6)
XYZxyz(15.3811, 10.1498, 52.1771)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147C2 #B8C247
analogous
#477BC2 #5147C2 #8F47C2
triadic
#5147C2 #C25147 #47C251
tetradic
#5147C2 #C2477B #B8C247 #47C28F
square
#5147C2 #C2477B #B8C247 #47C28F
split-complementary
#5147C2 #C28F47 #7BC247
monochromatic
#29246B #3B3399 #5147C2 #7C75D1 #A8A3E0

Accessibility & contrast

On white

6.93
#5147C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5147C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147C2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147C2#FFFFFF#000000##FFFFFF
##5147C21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#07667E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5147c2;
/* rgb */ color: rgb(81, 71, 194);
/* oklch */ color: oklch(48.3% 0.185 280.6);
Tailwind
colors: {
  custom: {
    50: '#8d7bd5',
    500: '#5147c2',
    950: '#000000',
  },
}
SCSS
$custom: #5147c2;
$custom-light: #8d7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5147c2",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 244.878,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48283,
    "c": 0.18494,
    "h": 280.6
  },
  "luminance": 0.10151
}

Semantic roles & 50–950 ramp

primary
#5147C2
secondary
#C9CD97
accent
#DA4ECE
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5147C2

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

Preview Lab → · Contrast checker → · Palette generator →

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