#5140D5#5140D5

#5140D5 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.9% C 0.217 H 279.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5140D5
RGBrgb(81, 64, 213)
HSLhsl(247, 64%, 54%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(62%, 70%, 0%, 16.5%)
CIE-LABlab(38.23, 49.23, -74.03)
CIE-LCHlch(38.23, 88.91, 303.63°)
OKLaboklab(48.87% 0.0372 -0.2135)
OKLCHoklch(48.87% 0.217 279.9)
XYZxyz(17.2332, 10.2189, 64.0022)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D5 #C4D540
analogous
#407AD5 #5140D5 #9C40D5
triadic
#5140D5 #D55140 #40D551
tetradic
#5140D5 #D5407A #C4D540 #40D59C
square
#5140D5 #D5407A #C4D540 #40D59C
split-complementary
#5140D5 #D59C40 #7AD540
monochromatic
#271C7F #3727B1 #5140D5 #7F72E0 #ACA4EB

Accessibility & contrast

On white

6.90
#5140D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5140D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D5#FFFFFF#000000##FFFFFF
##5140D51.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#006886
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5140d5;
/* rgb */ color: rgb(81, 64, 213);
/* oklch */ color: oklch(48.9% 0.217 279.9);
Tailwind
colors: {
  custom: {
    50: '#9177e3',
    500: '#5140d5',
    950: '#000000',
  },
}
SCSS
$custom: #5140d5;
$custom-light: #9177e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d5",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 246.846,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48868,
    "c": 0.21672,
    "h": 279.9
  },
  "luminance": 0.1022
}

Semantic roles & 50–950 ramp

primary
#5140D5
secondary
#D1D899
accent
#E741D4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140D5

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

Preview Lab → · Contrast checker → · Palette generator →

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