#5148DA#5148DA

#5148DA is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.5% C 0.214 H 278.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5148DA
RGBrgb(81, 72, 218)
HSLhsl(244, 66%, 57%)
HSVhsv(244, 67%, 85%)
CMYKcmyk(62.8%, 67%, 0%, 14.5%)
CIE-LABlab(40.32, 46.29, -73.48)
CIE-LCHlch(40.32, 86.84, 302.21°)
OKLaboklab(50.5% 0.0305 -0.2119)
OKLCHoklch(50.5% 0.214 278.2)
XYZxyz(18.3615, 11.4446, 67.5575)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148DA #D1DA48
analogous
#4888DA #5148DA #9A48DA
triadic
#5148DA #DA5148 #48DA51
tetradic
#5148DA #DA4888 #D1DA48 #48DA9A
square
#5148DA #DA4888 #D1DA48 #48DA9A
split-complementary
#5148DA #DA9A48 #88DA48
monochromatic
#231C8B #3026BE #5148DA #817BE4 #B2AEEF

Accessibility & contrast

On white

6.38
#5148DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5148DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148DA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148DA#FFFFFF#000000##FFFFFF
##5148DA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0059D7
Tritanopia (blue-blind)
#006E8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5148da;
/* rgb */ color: rgb(81, 72, 218);
/* oklch */ color: oklch(50.5% 0.214 278.2);
Tailwind
colors: {
  custom: {
    50: '#917ce7',
    500: '#5148da',
    950: '#000000',
  },
}
SCSS
$custom: #5148da;
$custom-light: #917ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5148da",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 218
  },
  "hsl": {
    "h": 243.699,
    "s": 66.364,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50501,
    "c": 0.2141,
    "h": 278.2
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#5148DA
secondary
#D9DDA1
accent
#E93FDF
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148DA

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

Preview Lab → · Contrast checker → · Palette generator →

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