#5146D6#5146D6

#5146D6 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.8% C 0.211 H 278.9°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5146D6
RGBrgb(81, 70, 214)
HSLhsl(245, 64%, 56%)
HSVhsv(245, 67%, 84%)
CMYKcmyk(62.1%, 67.3%, 0%, 16.1%)
CIE-LABlab(39.55, 46.17, -72.44)
CIE-LCHlch(39.55, 85.90, 302.51°)
OKLaboklab(49.84% 0.0326 -0.2089)
OKLCHoklch(49.84% 0.211 278.9)
XYZxyz(17.7172, 10.9833, 64.7916)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D6 #CBD646
analogous
#4683D6 #5146D6 #9946D6
triadic
#5146D6 #D65146 #46D651
tetradic
#5146D6 #D64683 #CBD646 #46D699
square
#5146D6 #D64683 #CBD646 #46D699
split-complementary
#5146D6 #D69946 #83D646
monochromatic
#251D84 #3328B6 #5146D6 #8078E1 #AFAAEC

Accessibility & contrast

On white

6.57
#5146D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5146D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D6
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D6#FFFFFF#000000##FFFFFF
##5146D61.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#0057D3
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5146d6;
/* rgb */ color: rgb(81, 70, 214);
/* oklch */ color: oklch(49.8% 0.211 278.9);
Tailwind
colors: {
  custom: {
    50: '#907be4',
    500: '#5146d6',
    950: '#000000',
  },
}
SCSS
$custom: #5146d6;
$custom-light: #907be4;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d6",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 214
  },
  "hsl": {
    "h": 244.583,
    "s": 63.717,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49842,
    "c": 0.21139,
    "h": 278.9
  },
  "luminance": 0.10985
}

Semantic roles & 50–950 ramp

primary
#5146D6
secondary
#D5DA9E
accent
#E741DA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D6

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

Preview Lab → · Contrast checker → · Palette generator →

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