#504CA7#504CA7

#504CA7 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.142 H 281.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#504CA7
RGBrgb(80, 76, 167)
HSLhsl(243, 37%, 48%)
HSVhsv(243, 54%, 65%)
CMYKcmyk(52.1%, 54.5%, 0%, 34.5%)
CIE-LABlab(37.23, 27.28, -48.71)
CIE-LCHlch(37.23, 55.83, 299.25°)
OKLaboklab(46.99% 0.0281 -0.1391)
OKLCHoklch(46.99% 0.142 281.4)
XYZxyz(12.8656, 9.6636, 37.7391)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA7 #A3A74C
analogous
#4C76A7 #504CA7 #7D4CA7
triadic
#504CA7 #A7504C #4CA750
tetradic
#504CA7 #A74C76 #A3A74C #4CA77D
square
#504CA7 #A74C76 #A3A74C #4CA77D
split-complementary
#504CA7 #A77D4C #76A74C
monochromatic
#282653 #3C397D #504CA7 #7572BF #9E9CD2

Accessibility & contrast

On white

7.16
#504CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#504CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA7#FFFFFF#000000##FFFFFF
##504CA71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BAA
Deuteranopia (green-blind)
#0C54A5
Tritanopia (blue-blind)
#2D6072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ca7;
/* rgb */ color: rgb(80, 76, 167);
/* oklch */ color: oklch(47.0% 0.142 281.4);
Tailwind
colors: {
  custom: {
    50: '#887ec2',
    500: '#504ca7',
    950: '#000000',
  },
}
SCSS
$custom: #504ca7;
$custom-light: #887ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca7",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 242.637,
    "s": 37.449,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46985,
    "c": 0.14195,
    "h": 281.4
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#504CA7
secondary
#BCBE90
accent
#CD5AC8
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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