#5148D7#5148D7

#5148D7 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.2% C 0.210 H 278.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5148D7
RGBrgb(81, 72, 215)
HSLhsl(244, 64%, 56%)
HSVhsv(244, 67%, 84%)
CMYKcmyk(62.3%, 66.5%, 0%, 15.7%)
CIE-LABlab(40.06, 45.34, -72.18)
CIE-LCHlch(40.06, 85.24, 302.13°)
OKLaboklab(50.24% 0.0309 -0.2081)
OKLCHoklch(50.24% 0.21 278.5)
XYZxyz(17.9725, 11.2889, 65.5087)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D7 #CED748
analogous
#4887D7 #5148D7 #9948D7
triadic
#5148D7 #D75148 #48D751
tetradic
#5148D7 #D74887 #CED748 #48D799
square
#5148D7 #D74887 #CED748 #48D799
split-complementary
#5148D7 #D79948 #87D748
monochromatic
#241E87 #3229B9 #5148D7 #817AE2 #B1ACED

Accessibility & contrast

On white

6.45
#5148D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5148D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D7#FFFFFF#000000##FFFFFF
##5148D71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#006D89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5148d7;
/* rgb */ color: rgb(81, 72, 215);
/* oklch */ color: oklch(50.2% 0.210 278.5);
Tailwind
colors: {
  custom: {
    50: '#907ce4',
    500: '#5148d7',
    950: '#000000',
  },
}
SCSS
$custom: #5148d7;
$custom-light: #907ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d7",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 215
  },
  "hsl": {
    "h": 243.776,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50237,
    "c": 0.21038,
    "h": 278.5
  },
  "luminance": 0.1129
}

Semantic roles & 50–950 ramp

primary
#5148D7
secondary
#D7DBA0
accent
#E741DD
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148D7

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

Preview Lab → · Contrast checker → · Palette generator →

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