#5139D7#5139D7

#5139D7 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 48.1% C 0.226 H 280.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5139D7
RGBrgb(81, 57, 215)
HSLhsl(249, 66%, 53%)
HSVhsv(249, 73%, 84%)
CMYKcmyk(62.3%, 73.5%, 0%, 15.7%)
CIE-LABlab(37.08, 53.58, -77.08)
CIE-LCHlch(37.08, 93.87, 304.80°)
OKLaboklab(48.1% 0.0415 -0.2224)
OKLCHoklch(48.1% 0.226 280.6)
XYZxyz(17.1183, 9.5806, 65.2240)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139D7 #BFD739
analogous
#3970D7 #5139D7 #A039D7
triadic
#5139D7 #D75139 #39D751
tetradic
#5139D7 #D73970 #BFD739 #39D7A0
square
#5139D7 #D73970 #BFD739 #39D7A0
split-complementary
#5139D7 #D7A039 #70D739
monochromatic
#28197C #3923AF #5139D7 #7E6CE1 #AA9FEC

Accessibility & contrast

On white

7.20
#5139D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5139D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139D7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139D7#FFFFFF#000000##FFFFFF
##5139D71.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0051D4
Tritanopia (blue-blind)
#006685
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5139d7;
/* rgb */ color: rgb(81, 57, 215);
/* oklch */ color: oklch(48.1% 0.226 280.6);
Tailwind
colors: {
  custom: {
    50: '#9273e5',
    500: '#5139d7',
    950: '#000000',
  },
}
SCSS
$custom: #5139d7;
$custom-light: #9273e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5139d7",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 215
  },
  "hsl": {
    "h": 249.114,
    "s": 66.387,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48104,
    "c": 0.22623,
    "h": 280.6
  },
  "luminance": 0.09582
}

Semantic roles & 50–950 ramp

primary
#5139D7
secondary
#CED894
accent
#E93ECF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5139D7

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

Preview Lab → · Contrast checker → · Palette generator →

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