#5149D5#5149D5

#5149D5 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.2% C 0.207 H 278.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5149D5
RGBrgb(81, 73, 213)
HSLhsl(243, 63%, 56%)
HSVhsv(243, 66%, 84%)
CMYKcmyk(62%, 65.7%, 0%, 16.5%)
CIE-LABlab(40.11, 44.12, -70.96)
CIE-LCHlch(40.11, 83.55, 301.87°)
OKLaboklab(50.22% 0.0304 -0.2045)
OKLCHoklch(50.22% 0.207 278.4)
XYZxyz(17.7823, 11.3171, 64.1852)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149D5 #CDD549
analogous
#4987D5 #5149D5 #9749D5
triadic
#5149D5 #D55149 #49D551
tetradic
#5149D5 #D54987 #CDD549 #49D597
square
#5149D5 #D54987 #CDD549 #49D597
split-complementary
#5149D5 #D59749 #87D549
monochromatic
#251F85 #322AB7 #5149D5 #817BE0 #B0ACEC

Accessibility & contrast

On white

6.43
#5149D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5149D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149D5
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149D5#FFFFFF#000000##FFFFFF
##5149D51.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#006D89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5149d5;
/* rgb */ color: rgb(81, 73, 213);
/* oklch */ color: oklch(50.2% 0.207 278.4);
Tailwind
colors: {
  custom: {
    50: '#907de3',
    500: '#5149d5',
    950: '#000000',
  },
}
SCSS
$custom: #5149d5;
$custom-light: #907de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5149d5",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 213
  },
  "hsl": {
    "h": 243.429,
    "s": 62.5,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50219,
    "c": 0.20674,
    "h": 278.4
  },
  "luminance": 0.11319
}

Semantic roles & 50–950 ramp

primary
#5149D5
secondary
#D7DAA0
accent
#E642DC
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5149D5

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

Preview Lab → · Contrast checker → · Palette generator →

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