#504CFC#504CFC

#504CFC is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 54.1% C 0.251 H 275.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#504CFC
RGBrgb(80, 76, 252)
HSLhsl(241, 97%, 64%)
HSVhsv(241, 70%, 99%)
CMYKcmyk(68.3%, 69.8%, 0%, 1.2%)
CIE-LABlab(44.09, 54.62, -86.51)
CIE-LCHlch(44.09, 102.31, 302.27°)
OKLaboklab(54.11% 0.0219 -0.25)
OKLCHoklch(54.11% 0.251 275)
XYZxyz(23.4576, 13.9004, 93.5234)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CFC #F8FC4C
analogous
#4CA0FC #504CFC #A84CFC
triadic
#504CFC #FC504C #4CFC50
tetradic
#504CFC #FC4CA0 #F8FC4C #4CFCA8
square
#504CFC #FC4CA0 #F8FC4C #4CFCA8
split-complementary
#504CFC #FCA84C #A0FC4C
monochromatic
#0803CA #1510FB #504CFC #8B88FD #C6C4FE

Accessibility & contrast

On white

5.55
#504CFC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#504CFC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CFC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CFC#FFFFFF#000000##FFFFFF
##504CFC1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0060F9
Tritanopia (blue-blind)
#007D9F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #504cfc;
/* rgb */ color: rgb(80, 76, 252);
/* oklch */ color: oklch(54.1% 0.251 275.0);
Tailwind
colors: {
  custom: {
    50: '#9780ff',
    500: '#504cfc',
    950: '#000000',
  },
}
SCSS
$custom: #504cfc;
$custom-light: #9780ff;
$custom-dark: #000000;
JSON
{
  "hex": "#504cfc",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 252
  },
  "hsl": {
    "h": 241.364,
    "s": 96.703,
    "l": 64.314
  },
  "oklch": {
    "l": 0.54112,
    "c": 0.25101,
    "h": 275
  },
  "luminance": 0.13903
}

Semantic roles & 50–950 ramp

primary
#504CFC
secondary
#EFF0B3
accent
#E600E0
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A18
muted
#7F7C86

Preview Lab

Preview with #504CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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