#5140D7#5140D7

#5140D7 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.1% C 0.219 H 279.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5140D7
RGBrgb(81, 64, 215)
HSLhsl(247, 65%, 55%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(62.3%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.41, 49.85, -74.89)
CIE-LCHlch(38.41, 89.96, 303.65°)
OKLaboklab(49.05% 0.0368 -0.216)
OKLCHoklch(49.05% 0.219 279.7)
XYZxyz(17.4886, 10.3211, 65.3474)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D7 #C6D740
analogous
#407BD7 #5140D7 #9D40D7
triadic
#5140D7 #D75140 #40D751
tetradic
#5140D7 #D7407B #C6D740 #40D79D
square
#5140D7 #D7407B #C6D740 #40D79D
split-complementary
#5140D7 #D79D40 #7BD740
monochromatic
#271B81 #3626B4 #5140D7 #7F73E2 #ADA5EC

Accessibility & contrast

On white

6.85
#5140D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5140D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D7
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D7#FFFFFF#000000##FFFFFF
##5140D71.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5140d7;
/* rgb */ color: rgb(81, 64, 215);
/* oklch */ color: oklch(49.1% 0.219 279.7);
Tailwind
colors: {
  custom: {
    50: '#9177e5',
    500: '#5140d7',
    950: '#000000',
  },
}
SCSS
$custom: #5140d7;
$custom-light: #9177e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d7",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 246.755,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49051,
    "c": 0.21913,
    "h": 279.7
  },
  "luminance": 0.10322
}

Semantic roles & 50–950 ramp

primary
#5140D7
secondary
#D2D99A
accent
#E83FD5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140D7

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

Preview Lab → · Contrast checker → · Palette generator →

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