#5147CA#5147CA

#5147CA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 49.0% C 0.195 H 279.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5147CA
RGBrgb(81, 71, 202)
HSLhsl(245, 55%, 54%)
HSVhsv(245, 65%, 79%)
CMYKcmyk(59.9%, 64.9%, 0%, 20.8%)
CIE-LABlab(38.76, 41.79, -66.81)
CIE-LCHlch(38.76, 78.81, 302.02°)
OKLaboklab(48.96% 0.0332 -0.1924)
OKLCHoklch(48.96% 0.195 279.8)
XYZxyz(16.3039, 10.5189, 57.0369)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147CA #C0CA47
analogous
#477ECA #5147CA #9247CA
triadic
#5147CA #CA5147 #47CA51
tetradic
#5147CA #CA477E #C0CA47 #47CA92
square
#5147CA #CA477E #C0CA47 #47CA92
split-complementary
#5147CA #CA9247 #7ECA47
monochromatic
#282275 #382FA4 #5147CA #7E77D8 #ABA6E5

Accessibility & contrast

On white

6.77
#5147CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5147CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147CA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147CA#FFFFFF#000000##FFFFFF
##5147CA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5147ca;
/* rgb */ color: rgb(81, 71, 202);
/* oklch */ color: oklch(49.0% 0.195 279.8);
Tailwind
colors: {
  custom: {
    50: '#8e7bdb',
    500: '#5147ca',
    950: '#000000',
  },
}
SCSS
$custom: #5147ca;
$custom-light: #8e7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5147ca",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 244.58,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48956,
    "c": 0.1952,
    "h": 279.8
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#5147CA
secondary
#CED29A
accent
#DF49D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5147CA

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

Preview Lab → · Contrast checker → · Palette generator →

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