#5137D7#5137D7

#5137D7 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.9% C 0.228 H 280.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5137D7
RGBrgb(81, 55, 215)
HSLhsl(250, 67%, 53%)
HSVhsv(250, 74%, 84%)
CMYKcmyk(62.3%, 74.4%, 0%, 15.7%)
CIE-LABlab(36.72, 54.60, -77.67)
CIE-LCHlch(36.72, 94.94, 305.10°)
OKLaboklab(47.85% 0.0428 -0.2241)
OKLCHoklch(47.85% 0.228 280.8)
XYZxyz(17.0214, 9.3867, 65.1916)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137D7 #BDD737
analogous
#376DD7 #5137D7 #A137D7
triadic
#5137D7 #D75137 #37D751
tetradic
#5137D7 #D7376D #BDD737 #37D7A1
square
#5137D7 #D7376D #BDD737 #37D7A1
split-complementary
#5137D7 #D7A137 #6DD737
monochromatic
#29197B #3923AE #5137D7 #7D6AE1 #AA9DEB

Accessibility & contrast

On white

7.30
#5137D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5137D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137D7
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137D7#FFFFFF#000000##FFFFFF
##5137D71.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006585
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5137d7;
/* rgb */ color: rgb(81, 55, 215);
/* oklch */ color: oklch(47.9% 0.228 280.8);
Tailwind
colors: {
  custom: {
    50: '#9271e5',
    500: '#5137d7',
    950: '#000000',
  },
}
SCSS
$custom: #5137d7;
$custom-light: #9271e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5137d7",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 249.75,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.22816,
    "h": 280.8
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#5137D7
secondary
#CCD792
accent
#EA3ECE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5137D7

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

Preview Lab → · Contrast checker → · Palette generator →

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