#504ECD#504ECD

#504ECD is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.3% C 0.191 H 277.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#504ECD
RGBrgb(80, 78, 205)
HSLhsl(241, 56%, 55%)
HSVhsv(241, 62%, 80%)
CMYKcmyk(61%, 62%, 0%, 19.6%)
CIE-LABlab(40.51, 38.41, -65.70)
CIE-LCHlch(40.51, 76.10, 300.31°)
OKLaboklab(50.29% 0.0257 -0.1891)
OKLCHoklch(50.29% 0.191 277.7)
XYZxyz(17.0486, 11.5607, 59.0788)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ECD #CBCD4E
analogous
#4E8BCD #504ECD #8F4ECD
triadic
#504ECD #CD504E #4ECD50
tetradic
#504ECD #CD4E8B #CBCD4E #4ECD8F
square
#504ECD #CD4E8B #CBCD4E #4ECD8F
split-complementary
#504ECD #CD8F4E #8BCD4E
monochromatic
#25237D #3331AD #504ECD #7F7EDA #AEADE8

Accessibility & contrast

On white

6.34
#504ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#504ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ECD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ECD#FFFFFF#000000##FFFFFF
##504ECD1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#006E86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504ecd;
/* rgb */ color: rgb(80, 78, 205);
/* oklch */ color: oklch(50.3% 0.191 277.7);
Tailwind
colors: {
  custom: {
    50: '#8e80dd',
    500: '#504ecd',
    950: '#000000',
  },
}
SCSS
$custom: #504ecd;
$custom-light: #8e80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#504ecd",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 240.945,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5029,
    "c": 0.19082,
    "h": 277.7
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#504ECD
secondary
#D5D6A1
accent
#DF49DD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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