#5140D6#5140D6

#5140D6 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.218 H 279.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5140D6
RGBrgb(81, 64, 214)
HSLhsl(247, 65%, 55%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(62.1%, 70.1%, 0%, 16.1%)
CIE-LABlab(38.32, 49.54, -74.46)
CIE-LCHlch(38.32, 89.44, 303.64°)
OKLaboklab(48.96% 0.037 -0.2148)
OKLCHoklch(48.96% 0.218 279.8)
XYZxyz(17.3605, 10.2698, 64.6727)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D6 #C5D640
analogous
#407AD6 #5140D6 #9C40D6
triadic
#5140D6 #D65140 #40D651
tetradic
#5140D6 #D6407A #C5D640 #40D69C
square
#5140D6 #D6407A #C5D640 #40D69C
split-complementary
#5140D6 #D69C40 #7AD640
monochromatic
#271B80 #3626B2 #5140D6 #7F72E1 #ADA5EC

Accessibility & contrast

On white

6.88
#5140D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5140D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D6
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D6#FFFFFF#000000##FFFFFF
##5140D61.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0054D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5140d6;
/* rgb */ color: rgb(81, 64, 214);
/* oklch */ color: oklch(49.0% 0.218 279.8);
Tailwind
colors: {
  custom: {
    50: '#9177e4',
    500: '#5140d6',
    950: '#000000',
  },
}
SCSS
$custom: #5140d6;
$custom-light: #9177e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d6",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 246.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48959,
    "c": 0.21793,
    "h": 279.8
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#5140D6
secondary
#D1D999
accent
#E840D5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5140D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva