#504CC6#504CC6

#504CC6 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.4% C 0.184 H 278.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#504CC6
RGBrgb(80, 76, 198)
HSLhsl(242, 52%, 54%)
HSVhsv(242, 62%, 78%)
CMYKcmyk(59.6%, 61.6%, 0%, 22.4%)
CIE-LABlab(39.50, 37.34, -63.29)
CIE-LCHlch(39.50, 73.48, 300.54°)
OKLaboklab(49.38% 0.0279 -0.182)
OKLCHoklch(49.38% 0.184 278.7)
XYZxyz(16.0825, 10.9504, 54.6813)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC6 #C2C64C
analogous
#4C85C6 #504CC6 #8D4CC6
triadic
#504CC6 #C6504C #4CC650
tetradic
#504CC6 #C64C85 #C2C64C #4CC68D
square
#504CC6 #C64C85 #C2C64C #4CC68D
split-complementary
#504CC6 #C68D4C #85C64C
monochromatic
#272573 #3733A1 #504CC6 #7D7AD5 #ABA9E4

Accessibility & contrast

On white

6.58
#504CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#504CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CC6
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC6#FFFFFF#000000##FFFFFF
##504CC61.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504cc6;
/* rgb */ color: rgb(80, 76, 198);
/* oklch */ color: oklch(49.4% 0.184 278.7);
Tailwind
colors: {
  custom: {
    50: '#8d7ed8',
    500: '#504cc6',
    950: '#000000',
  },
}
SCSS
$custom: #504cc6;
$custom-light: #8d7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc6",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 198
  },
  "hsl": {
    "h": 241.967,
    "s": 51.695,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49376,
    "c": 0.18414,
    "h": 278.7
  },
  "luminance": 0.10952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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