#504EE7#504EE7

#504EE7 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.224 H 276.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#504EE7
RGBrgb(80, 78, 231)
HSLhsl(241, 76%, 61%)
HSVhsv(241, 66%, 91%)
CMYKcmyk(65.4%, 66.2%, 0%, 9.4%)
CIE-LABlab(42.65, 46.84, -77.07)
CIE-LCHlch(42.65, 90.19, 301.29°)
OKLaboklab(52.51% 0.0234 -0.2224)
OKLCHoklch(52.51% 0.224 276)
XYZxyz(20.4517, 12.9220, 77.0022)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EE7 #E5E74E
analogous
#4E99E7 #504EE7 #9C4EE7
triadic
#504EE7 #E7504E #4EE750
tetradic
#504EE7 #E74E99 #E5E74E #4EE79C
square
#504EE7 #E74E99 #E5E74E #4EE79C
split-complementary
#504EE7 #E79C4E #99E74E
monochromatic
#1816A4 #201EDA #504EE7 #8584EE #BBBAF6

Accessibility & contrast

On white

5.86
#504EE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#504EE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EE7
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EE7#FFFFFF#000000##FFFFFF
##504EE71.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504ee7;
/* rgb */ color: rgb(80, 78, 231);
/* oklch */ color: oklch(52.5% 0.224 276.0);
Tailwind
colors: {
  custom: {
    50: '#9280f0',
    500: '#504ee7',
    950: '#000000',
  },
}
SCSS
$custom: #504ee7;
$custom-light: #9280f0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ee7",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 231
  },
  "hsl": {
    "h": 240.784,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52507,
    "c": 0.22368,
    "h": 276
  },
  "luminance": 0.12924
}

Semantic roles & 50–950 ramp

primary
#504EE7
secondary
#E5E5AB
accent
#D80DD6
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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