#504CD7#504CD7

#504CD7 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 50.8% C 0.206 H 277.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#504CD7
RGBrgb(80, 76, 215)
HSLhsl(242, 63%, 57%)
HSVhsv(242, 65%, 84%)
CMYKcmyk(62.8%, 64.7%, 0%, 15.7%)
CIE-LABlab(40.86, 42.85, -70.87)
CIE-LCHlch(40.86, 82.82, 301.16°)
OKLaboklab(50.8% 0.0266 -0.2043)
OKLCHoklch(50.8% 0.206 277.4)
XYZxyz(18.1545, 11.7792, 65.5937)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD7 #D3D74C
analogous
#4C8DD7 #504CD7 #964CD7
triadic
#504CD7 #D7504C #4CD750
tetradic
#504CD7 #D74C8D #D3D74C #4CD796
square
#504CD7 #D74C8D #D3D74C #4CD796
split-complementary
#504CD7 #D7964C #8DD74C
monochromatic
#221F8A #2E2ABC #504CD7 #817EE2 #B2B0ED

Accessibility & contrast

On white

6.26
#504CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#504CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CD7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD7#FFFFFF#000000##FFFFFF
##504CD71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#00708B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504cd7;
/* rgb */ color: rgb(80, 76, 215);
/* oklch */ color: oklch(50.8% 0.206 277.4);
Tailwind
colors: {
  custom: {
    50: '#907fe4',
    500: '#504cd7',
    950: '#000000',
  },
}
SCSS
$custom: #504cd7;
$custom-light: #907fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd7",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 241.727,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50799,
    "c": 0.20601,
    "h": 277.4
  },
  "luminance": 0.11781
}

Semantic roles & 50–950 ramp

primary
#504CD7
secondary
#DADCA3
accent
#E641E2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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