#504CE7#504CE7

#504CE7 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.2% C 0.226 H 276.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#504CE7
RGBrgb(80, 76, 231)
HSLhsl(242, 76%, 60%)
HSVhsv(242, 67%, 91%)
CMYKcmyk(65.4%, 67.1%, 0%, 9.4%)
CIE-LABlab(42.22, 47.99, -77.77)
CIE-LCHlch(42.22, 91.39, 301.68°)
OKLaboklab(52.2% 0.0248 -0.2245)
OKLCHoklch(52.2% 0.226 276.3)
XYZxyz(20.3118, 12.6421, 76.9556)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE7 #E3E74C
analogous
#4C96E7 #504CE7 #9D4CE7
triadic
#504CE7 #E7504C #4CE750
tetradic
#504CE7 #E74C96 #E3E74C #4CE79D
square
#504CE7 #E74C96 #E3E74C #4CE79D
split-complementary
#504CE7 #E79D4C #96E74C
monochromatic
#1916A3 #221DD9 #504CE7 #8582EE #BAB8F5

Accessibility & contrast

On white

5.95
#504CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#504CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE7#FFFFFF#000000##FFFFFF
##504CE71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AEC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504ce7;
/* rgb */ color: rgb(80, 76, 231);
/* oklch */ color: oklch(52.2% 0.226 276.3);
Tailwind
colors: {
  custom: {
    50: '#937ff0',
    500: '#504ce7',
    950: '#000000',
  },
}
SCSS
$custom: #504ce7;
$custom-light: #937ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce7",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 231
  },
  "hsl": {
    "h": 241.548,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.22587,
    "h": 276.3
  },
  "luminance": 0.12644
}

Semantic roles & 50–950 ramp

primary
#504CE7
secondary
#E4E5AA
accent
#D90DD3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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