#504CC7#504CC7

#504CC7 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.5% C 0.185 H 278.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#504CC7
RGBrgb(80, 76, 199)
HSLhsl(242, 52%, 54%)
HSVhsv(242, 62%, 78%)
CMYKcmyk(59.8%, 61.8%, 0%, 22%)
CIE-LABlab(39.57, 37.67, -63.74)
CIE-LCHlch(39.57, 74.04, 300.58°)
OKLaboklab(49.46% 0.0278 -0.1834)
OKLCHoklch(49.46% 0.185 278.6)
XYZxyz(16.1982, 10.9967, 55.2907)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC7 #C3C74C
analogous
#4C86C7 #504CC7 #8E4CC7
triadic
#504CC7 #C7504C #4CC750
tetradic
#504CC7 #C74C86 #C3C74C #4CC78E
square
#504CC7 #C74C86 #C3C74C #4CC78E
split-complementary
#504CC7 #C78E4C #86C74C
monochromatic
#272474 #3733A3 #504CC7 #7E7BD6 #ABA9E4

Accessibility & contrast

On white

6.56
#504CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#504CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CC7
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC7#FFFFFF#000000##FFFFFF
##504CC71.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#006A82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504cc7;
/* rgb */ color: rgb(80, 76, 199);
/* oklch */ color: oklch(49.5% 0.185 278.6);
Tailwind
colors: {
  custom: {
    50: '#8d7ed9',
    500: '#504cc7',
    950: '#000000',
  },
}
SCSS
$custom: #504cc7;
$custom-light: #8d7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc7",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 241.951,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49458,
    "c": 0.18544,
    "h": 278.6
  },
  "luminance": 0.10998
}

Semantic roles & 50–950 ramp

primary
#504CC7
secondary
#D0D29D
accent
#DC4CD7
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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