#5148D5#5148D5

#5148D5 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.1% C 0.208 H 278.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5148D5
RGBrgb(81, 72, 213)
HSLhsl(244, 63%, 56%)
HSVhsv(244, 66%, 84%)
CMYKcmyk(62%, 66.2%, 0%, 16.5%)
CIE-LABlab(39.89, 44.70, -71.31)
CIE-LCHlch(39.89, 84.16, 302.08°)
OKLaboklab(50.06% 0.0312 -0.2055)
OKLCHoklch(50.06% 0.208 278.6)
XYZxyz(17.7171, 11.1868, 64.1635)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D5 #CCD548
analogous
#4885D5 #5148D5 #9748D5
triadic
#5148D5 #D55148 #48D551
tetradic
#5148D5 #D54885 #CCD548 #48D597
square
#5148D5 #D54885 #CCD548 #48D597
split-complementary
#5148D5 #D59748 #85D548
monochromatic
#251E84 #332AB6 #5148D5 #807AE0 #B0ACEC

Accessibility & contrast

On white

6.49
#5148D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5148D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D5#FFFFFF#000000##FFFFFF
##5148D51.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#006D88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5148d5;
/* rgb */ color: rgb(81, 72, 213);
/* oklch */ color: oklch(50.1% 0.208 278.6);
Tailwind
colors: {
  custom: {
    50: '#907ce3',
    500: '#5148d5',
    950: '#000000',
  },
}
SCSS
$custom: #5148d5;
$custom-light: #907ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d5",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 243.83,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50062,
    "c": 0.20789,
    "h": 278.6
  },
  "luminance": 0.11188
}

Semantic roles & 50–950 ramp

primary
#5148D5
secondary
#D6DA9F
accent
#E642DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148D5

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

Preview Lab → · Contrast checker → · Palette generator →

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