#5146D5#5146D5

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

Color values

HEX#5146D5
RGBrgb(81, 70, 213)
HSLhsl(245, 63%, 55%)
HSVhsv(245, 67%, 84%)
CMYKcmyk(62%, 67.1%, 0%, 16.5%)
CIE-LABlab(39.47, 45.86, -72.01)
CIE-LCHlch(39.47, 85.37, 302.49°)
OKLaboklab(49.75% 0.0327 -0.2076)
OKLCHoklch(49.75% 0.21 279)
XYZxyz(17.5899, 10.9324, 64.1211)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D5 #CAD546
analogous
#4683D5 #5146D5 #9846D5
triadic
#5146D5 #D55146 #46D551
tetradic
#5146D5 #D54683 #CAD546 #46D598
square
#5146D5 #D54683 #CAD546 #46D598
split-complementary
#5146D5 #D59846 #83D546
monochromatic
#251E83 #3429B5 #5146D5 #8078E0 #AFAAEC

Accessibility & contrast

On white

6.59
#5146D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5146D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D5#FFFFFF#000000##FFFFFF
##5146D51.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5146d5;
/* rgb */ color: rgb(81, 70, 213);
/* oklch */ color: oklch(49.8% 0.210 279.0);
Tailwind
colors: {
  custom: {
    50: '#907be3',
    500: '#5146d5',
    950: '#000000',
  },
}
SCSS
$custom: #5146d5;
$custom-light: #907be3;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d5",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 213
  },
  "hsl": {
    "h": 244.615,
    "s": 62.996,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49754,
    "c": 0.21015,
    "h": 279
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

primary
#5146D5
secondary
#D5D99E
accent
#E642D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D5

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

Preview Lab → · Contrast checker → · Palette generator →

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