#504ED5#504ED5

#504ED5 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.0% C 0.201 H 277.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#504ED5
RGBrgb(80, 78, 213)
HSLhsl(241, 62%, 57%)
HSVhsv(241, 63%, 84%)
CMYKcmyk(62.4%, 63.4%, 0%, 16.5%)
CIE-LABlab(41.15, 41.01, -69.26)
CIE-LCHlch(41.15, 80.49, 300.63°)
OKLaboklab(50.96% 0.0251 -0.1995)
OKLCHoklch(50.96% 0.201 277.2)
XYZxyz(18.0390, 11.9569, 64.2952)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED5 #D3D54E
analogous
#4E90D5 #504ED5 #944ED5
triadic
#504ED5 #D5504E #4ED550
tetradic
#504ED5 #D54E90 #D3D54E #4ED594
square
#504ED5 #D54E90 #D3D54E #4ED594
split-complementary
#504ED5 #D5944E #90D54E
monochromatic
#222088 #2E2CBA #504ED5 #817FE1 #B2B1EC

Accessibility & contrast

On white

6.19
#504ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#504ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED5#FFFFFF#000000##FFFFFF
##504ED51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#00708A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504ed5;
/* rgb */ color: rgb(80, 78, 213);
/* oklch */ color: oklch(51.0% 0.201 277.2);
Tailwind
colors: {
  custom: {
    50: '#8f80e3',
    500: '#504ed5',
    950: '#000000',
  },
}
SCSS
$custom: #504ed5;
$custom-light: #8f80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed5",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 240.889,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.20113,
    "h": 277.2
  },
  "luminance": 0.11958
}

Semantic roles & 50–950 ramp

primary
#504ED5
secondary
#DADBA4
accent
#E543E2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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