#504C97#504C97

#504C97 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.9% C 0.119 H 283.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#504C97
RGBrgb(80, 76, 151)
HSLhsl(243, 33%, 45%)
HSVhsv(243, 50%, 59%)
CMYKcmyk(47%, 49.7%, 0%, 40.8%)
CIE-LABlab(36.19, 22.17, -40.77)
CIE-LCHlch(36.19, 46.41, 298.54°)
OKLaboklab(45.87% 0.0269 -0.1158)
OKLCHoklch(45.87% 0.119 283.1)
XYZxyz(11.4770, 9.1082, 30.4255)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C97 #93974C
analogous
#4C6E97 #504C97 #764C97
triadic
#504C97 #97504C #4C9750
tetradic
#504C97 #974C6E #93974C #4C9776
square
#504C97 #974C6E #93974C #4C9776
split-complementary
#504C97 #97764C #6E974C
monochromatic
#252346 #3A386E #504C97 #6F6BB5 #9794C9

Accessibility & contrast

On white

7.44
#504C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#504C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C97
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C97#FFFFFF#000000##FFFFFF
##504C971.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#385C6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #504c97;
/* rgb */ color: rgb(80, 76, 151);
/* oklch */ color: oklch(45.9% 0.119 283.1);
Tailwind
colors: {
  custom: {
    50: '#867eb6',
    500: '#504c97',
    950: '#000000',
  },
}
SCSS
$custom: #504c97;
$custom-light: #867eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#504c97",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 243.2,
    "s": 33.04,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.11888,
    "h": 283.1
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#504C97
secondary
#B3B689
accent
#C95FC3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #504C97

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

Preview Lab → · Contrast checker → · Palette generator →

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