#504CC5#504CC5

#504CC5 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.3% C 0.183 H 278.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#504CC5
RGBrgb(80, 76, 197)
HSLhsl(242, 51%, 54%)
HSVhsv(242, 61%, 77%)
CMYKcmyk(59.4%, 61.4%, 0%, 22.7%)
CIE-LABlab(39.42, 37.02, -62.83)
CIE-LCHlch(39.42, 72.93, 300.50°)
OKLaboklab(49.3% 0.0279 -0.1807)
OKLCHoklch(49.3% 0.183 278.8)
XYZxyz(15.9675, 10.9044, 54.0758)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC5 #C1C54C
analogous
#4C84C5 #504CC5 #8C4CC5
triadic
#504CC5 #C5504C #4CC550
tetradic
#504CC5 #C54C84 #C1C54C #4CC58C
square
#504CC5 #C54C84 #C1C54C #4CC58C
split-complementary
#504CC5 #C58C4C #84C54C
monochromatic
#272572 #3734A0 #504CC5 #7D7AD4 #AAA8E3

Accessibility & contrast

On white

6.60
#504CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#504CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CC5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC5#FFFFFF#000000##FFFFFF
##504CC51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504cc5;
/* rgb */ color: rgb(80, 76, 197);
/* oklch */ color: oklch(49.3% 0.183 278.8);
Tailwind
colors: {
  custom: {
    50: '#8d7ed7',
    500: '#504cc5',
    950: '#000000',
  },
}
SCSS
$custom: #504cc5;
$custom-light: #8d7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc5",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 241.983,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49295,
    "c": 0.18282,
    "h": 278.8
  },
  "luminance": 0.10906
}

Semantic roles & 50–950 ramp

primary
#504CC5
secondary
#CFD09C
accent
#DB4DD6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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