#5146D3#5146D3

#5146D3 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.6% C 0.208 H 279.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5146D3
RGBrgb(81, 70, 211)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.6%, 66.8%, 0%, 17.3%)
CIE-LABlab(39.30, 45.22, -71.14)
CIE-LCHlch(39.30, 84.30, 302.45°)
OKLaboklab(49.58% 0.033 -0.205)
OKLCHoklch(49.58% 0.208 279.1)
XYZxyz(17.3376, 10.8315, 62.7924)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D3 #C8D346
analogous
#4681D3 #5146D3 #9846D3
triadic
#5146D3 #D35146 #46D351
tetradic
#5146D3 #D34681 #C8D346 #46D398
square
#5146D3 #D34681 #C8D346 #46D398
split-complementary
#5146D3 #D39846 #81D346
monochromatic
#261E80 #352AB2 #5146D3 #8077DF #AEA9EB

Accessibility & contrast

On white

6.63
#5146D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5146D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D3#FFFFFF#000000##FFFFFF
##5146D31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5146d3;
/* rgb */ color: rgb(81, 70, 211);
/* oklch */ color: oklch(49.6% 0.208 279.1);
Tailwind
colors: {
  custom: {
    50: '#907be2',
    500: '#5146d3',
    950: '#000000',
  },
}
SCSS
$custom: #5146d3;
$custom-light: #907be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d3",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 211
  },
  "hsl": {
    "h": 244.681,
    "s": 61.572,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49578,
    "c": 0.20767,
    "h": 279.1
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#5146D3
secondary
#D3D89D
accent
#E543D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5146D3

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

Preview Lab → · Contrast checker → · Palette generator →

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