#5146D4#5146D4

#5146D4 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.7% C 0.209 H 279.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5146D4
RGBrgb(81, 70, 212)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.8%, 67%, 0%, 16.9%)
CIE-LABlab(39.38, 45.54, -71.57)
CIE-LCHlch(39.38, 84.83, 302.47°)
OKLaboklab(49.67% 0.0328 -0.2063)
OKLCHoklch(49.67% 0.209 279)
XYZxyz(17.4634, 10.8818, 63.4547)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D4 #C9D446
analogous
#4682D4 #5146D4 #9846D4
triadic
#5146D4 #D45146 #46D451
tetradic
#5146D4 #D44682 #C9D446 #46D498
square
#5146D4 #D44682 #C9D446 #46D498
split-complementary
#5146D4 #D49846 #82D446
monochromatic
#261E81 #342AB3 #5146D4 #8078E0 #AEA9EB

Accessibility & contrast

On white

6.61
#5146D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5146D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D4#FFFFFF#000000##FFFFFF
##5146D41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D8
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5146d4;
/* rgb */ color: rgb(81, 70, 212);
/* oklch */ color: oklch(49.7% 0.209 279.0);
Tailwind
colors: {
  custom: {
    50: '#907be2',
    500: '#5146d4',
    950: '#000000',
  },
}
SCSS
$custom: #5146d4;
$custom-light: #907be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d4",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 212
  },
  "hsl": {
    "h": 244.648,
    "s": 62.281,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49666,
    "c": 0.20892,
    "h": 279
  },
  "luminance": 0.10883
}

Semantic roles & 50–950 ramp

primary
#5146D4
secondary
#D4D99D
accent
#E542D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D4

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

Preview Lab → · Contrast checker → · Palette generator →

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