#5146C8#5146C8

#5146C8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.194 H 280.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5146C8
RGBrgb(81, 70, 200)
HSLhsl(245, 54%, 53%)
HSVhsv(245, 65%, 78%)
CMYKcmyk(59.5%, 65%, 0%, 21.6%)
CIE-LABlab(38.37, 41.74, -66.28)
CIE-LCHlch(38.37, 78.33, 302.20°)
OKLaboklab(48.63% 0.0342 -0.1908)
OKLCHoklch(48.63% 0.194 280.2)
XYZxyz(16.0055, 10.2986, 55.7768)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146C8 #BDC846
analogous
#467CC8 #5146C8 #9246C8
triadic
#5146C8 #C85146 #46C851
tetradic
#5146C8 #C8467C #BDC846 #46C892
square
#5146C8 #C8467C #BDC846 #46C892
split-complementary
#5146C8 #C89246 #7CC846
monochromatic
#292272 #3930A1 #5146C8 #7D75D6 #AAA4E4

Accessibility & contrast

On white

6.86
#5146C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5146C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146C8
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146C8#FFFFFF#000000##FFFFFF
##5146C81.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5146c8;
/* rgb */ color: rgb(81, 70, 200);
/* oklch */ color: oklch(48.6% 0.194 280.2);
Tailwind
colors: {
  custom: {
    50: '#8e7ada',
    500: '#5146c8',
    950: '#000000',
  },
}
SCSS
$custom: #5146c8;
$custom-light: #8e7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5146c8",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 245.077,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48625,
    "c": 0.19385,
    "h": 280.2
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#5146C8
secondary
#CCD199
accent
#DE4AD1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5146C8

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

Preview Lab → · Contrast checker → · Palette generator →

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