#5148C8#5148C8

#5148C8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.9% C 0.191 H 279.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5148C8
RGBrgb(81, 72, 200)
HSLhsl(244, 54%, 53%)
HSVhsv(244, 64%, 78%)
CMYKcmyk(59.5%, 64%, 0%, 21.6%)
CIE-LABlab(38.82, 40.56, -65.56)
CIE-LCHlch(38.82, 77.09, 301.74°)
OKLaboklab(48.95% 0.0325 -0.1887)
OKLCHoklch(48.95% 0.191 279.8)
XYZxyz(16.1327, 10.5530, 55.8192)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148C8 #BFC848
analogous
#487FC8 #5148C8 #9148C8
triadic
#5148C8 #C85148 #48C851
tetradic
#5148C8 #C8487F #BFC848 #48C891
square
#5148C8 #C8487F #BFC848 #48C891
split-complementary
#5148C8 #C89148 #7FC848
monochromatic
#282373 #3931A2 #5148C8 #7E77D6 #AAA6E4

Accessibility & contrast

On white

6.75
#5148C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5148C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148C8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148C8#FFFFFF#000000##FFFFFF
##5148C81.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5148c8;
/* rgb */ color: rgb(81, 72, 200);
/* oklch */ color: oklch(48.9% 0.191 279.8);
Tailwind
colors: {
  custom: {
    50: '#8e7cda',
    500: '#5148c8',
    950: '#000000',
  },
}
SCSS
$custom: #5148c8;
$custom-light: #8e7cda;
$custom-dark: #000000;
JSON
{
  "hex": "#5148c8",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 200
  },
  "hsl": {
    "h": 244.219,
    "s": 53.782,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48948,
    "c": 0.19144,
    "h": 279.8
  },
  "luminance": 0.10554
}

Semantic roles & 50–950 ramp

primary
#5148C8
secondary
#CED19A
accent
#DD4BD3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5148C8

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

Preview Lab → · Contrast checker → · Palette generator →

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