#504ED9#504ED9

#504ED9 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.3% C 0.206 H 276.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#504ED9
RGBrgb(80, 78, 217)
HSLhsl(241, 65%, 58%)
HSVhsv(241, 64%, 85%)
CMYKcmyk(63.1%, 64.1%, 0%, 14.9%)
CIE-LABlab(41.47, 42.31, -71.02)
CIE-LCHlch(41.47, 82.67, 300.79°)
OKLaboklab(51.29% 0.0248 -0.2047)
OKLCHoklch(51.29% 0.206 276.9)
XYZxyz(18.5530, 12.1625, 67.0021)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED9 #D7D94E
analogous
#4E92D9 #504ED9 #954ED9
triadic
#504ED9 #D9504E #4ED950
tetradic
#504ED9 #D94E92 #D7D94E #4ED995
square
#504ED9 #D94E92 #D7D94E #4ED995
split-complementary
#504ED9 #D9954E #92D94E
monochromatic
#201F8E #2B29C0 #504ED9 #8280E4 #B4B3EF

Accessibility & contrast

On white

6.12
#504ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#504ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED9
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED9#FFFFFF#000000##FFFFFF
##504ED91.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504ed9;
/* rgb */ color: rgb(80, 78, 217);
/* oklch */ color: oklch(51.3% 0.206 276.9);
Tailwind
colors: {
  custom: {
    50: '#9080e6',
    500: '#504ed9',
    950: '#000000',
  },
}
SCSS
$custom: #504ed9;
$custom-light: #9080e6;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed9",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 240.863,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51294,
    "c": 0.20621,
    "h": 276.9
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#504ED9
secondary
#DCDDA6
accent
#E840E5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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