#5141D7#5141D7

#5141D7 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.218 H 279.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5141D7
RGBrgb(81, 65, 215)
HSLhsl(246, 65%, 55%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(62.3%, 69.8%, 0%, 15.7%)
CIE-LABlab(38.61, 49.30, -74.56)
CIE-LCHlch(38.61, 89.38, 303.47°)
OKLaboklab(49.19% 0.0361 -0.2151)
OKLCHoklch(49.19% 0.218 279.5)
XYZxyz(17.5455, 10.4349, 65.3663)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141D7 #C7D741
analogous
#417CD7 #5141D7 #9C41D7
triadic
#5141D7 #D75141 #41D751
tetradic
#5141D7 #D7417C #C7D741 #41D79C
square
#5141D7 #D7417C #C7D741 #41D79C
split-complementary
#5141D7 #D79C41 #7CD741
monochromatic
#261B82 #3526B5 #5141D7 #7F74E2 #AEA6EC

Accessibility & contrast

On white

6.80
#5141D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5141D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141D7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141D7#FFFFFF#000000##FFFFFF
##5141D71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DB
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5141d7;
/* rgb */ color: rgb(81, 65, 215);
/* oklch */ color: oklch(49.2% 0.218 279.5);
Tailwind
colors: {
  custom: {
    50: '#9177e5',
    500: '#5141d7',
    950: '#000000',
  },
}
SCSS
$custom: #5141d7;
$custom-light: #9177e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5141d7",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 246.4,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49194,
    "c": 0.21807,
    "h": 279.5
  },
  "luminance": 0.10436
}

Semantic roles & 50–950 ramp

primary
#5141D7
secondary
#D3D99A
accent
#E840D6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5141D7

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

Preview Lab → · Contrast checker → · Palette generator →

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