#5146D7#5146D7

#5146D7 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.9% C 0.213 H 278.8°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5146D7
RGBrgb(81, 70, 215)
HSLhsl(245, 64%, 56%)
HSVhsv(245, 67%, 84%)
CMYKcmyk(62.3%, 67.4%, 0%, 15.7%)
CIE-LABlab(39.64, 46.48, -72.88)
CIE-LCHlch(39.64, 86.44, 302.53°)
OKLaboklab(49.93% 0.0324 -0.2101)
OKLCHoklch(49.93% 0.213 278.8)
XYZxyz(17.8453, 11.0346, 65.4663)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D7 #CCD746
analogous
#4683D7 #5146D7 #9946D7
triadic
#5146D7 #D75146 #46D751
tetradic
#5146D7 #D74683 #CCD746 #46D799
square
#5146D7 #D74683 #CCD746 #46D799
split-complementary
#5146D7 #D79946 #83D746
monochromatic
#251D86 #3328B8 #5146D7 #8078E2 #B0ABED

Accessibility & contrast

On white

6.55
#5146D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5146D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D7
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D7#FFFFFF#000000##FFFFFF
##5146D71.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#0058D4
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5146d7;
/* rgb */ color: rgb(81, 70, 215);
/* oklch */ color: oklch(49.9% 0.213 278.8);
Tailwind
colors: {
  custom: {
    50: '#917be4',
    500: '#5146d7',
    950: '#000000',
  },
}
SCSS
$custom: #5146d7;
$custom-light: #917be4;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d7",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 215
  },
  "hsl": {
    "h": 244.552,
    "s": 64.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49931,
    "c": 0.21263,
    "h": 278.8
  },
  "luminance": 0.11036
}

Semantic roles & 50–950 ramp

primary
#5146D7
secondary
#D6DA9E
accent
#E740DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D7

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

Preview Lab → · Contrast checker → · Palette generator →

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