#504ED7#504ED7

#504ED7 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.1% C 0.204 H 277.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#504ED7
RGBrgb(80, 78, 215)
HSLhsl(241, 63%, 57%)
HSVhsv(241, 64%, 84%)
CMYKcmyk(62.8%, 63.7%, 0%, 15.7%)
CIE-LABlab(41.31, 41.66, -70.14)
CIE-LCHlch(41.31, 81.58, 300.71°)
OKLaboklab(51.12% 0.025 -0.2021)
OKLCHoklch(51.12% 0.204 277)
XYZxyz(18.2944, 12.0591, 65.6404)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED7 #D5D74E
analogous
#4E90D7 #504ED7 #954ED7
triadic
#504ED7 #D7504E #4ED750
tetradic
#504ED7 #D74E90 #D5D74E #4ED795
square
#504ED7 #D74E90 #D5D74E #4ED795
split-complementary
#504ED7 #D7954E #90D74E
monochromatic
#211F8B #2D2BBD #504ED7 #8180E2 #B3B2EE

Accessibility & contrast

On white

6.15
#504ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#504ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED7#FFFFFF#000000##FFFFFF
##504ED71.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#00718B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504ed7;
/* rgb */ color: rgb(80, 78, 215);
/* oklch */ color: oklch(51.1% 0.204 277.0);
Tailwind
colors: {
  custom: {
    50: '#9080e4',
    500: '#504ed7',
    950: '#000000',
  },
}
SCSS
$custom: #504ed7;
$custom-light: #9080e4;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed7",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 240.876,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51124,
    "c": 0.20368,
    "h": 277
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#504ED7
secondary
#DBDCA5
accent
#E642E4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504ED7

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

Preview Lab → · Contrast checker → · Palette generator →

#504ED7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva