#504AE6#504AE6

#504AE6 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.8% C 0.227 H 276.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#504AE6
RGBrgb(80, 74, 230)
HSLhsl(242, 76%, 60%)
HSVhsv(242, 68%, 90%)
CMYKcmyk(65.2%, 67.8%, 0%, 9.8%)
CIE-LABlab(41.71, 48.81, -78.04)
CIE-LCHlch(41.71, 92.05, 302.03°)
OKLaboklab(51.81% 0.0263 -0.2253)
OKLCHoklch(51.81% 0.227 276.7)
XYZxyz(20.0353, 12.3145, 76.1687)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AE6 #E0E64A
analogous
#4A92E6 #504AE6 #9E4AE6
triadic
#504AE6 #E6504A #4AE650
tetradic
#504AE6 #E64A92 #E0E64A #4AE69E
square
#504AE6 #E64A92 #E0E64A #4AE69E
split-complementary
#504AE6 #E69E4A #92E64A
monochromatic
#1B16A0 #251DD5 #504AE6 #8480ED #B8B6F5

Accessibility & contrast

On white

6.06
#504AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#504AE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AE6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AE6#FFFFFF#000000##FFFFFF
##504AE61.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EB
Deuteranopia (green-blind)
#005CE3
Tritanopia (blue-blind)
#007492
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504ae6;
/* rgb */ color: rgb(80, 74, 230);
/* oklch */ color: oklch(51.8% 0.227 276.7);
Tailwind
colors: {
  custom: {
    50: '#937eef',
    500: '#504ae6',
    950: '#000000',
  },
}
SCSS
$custom: #504ae6;
$custom-light: #937eef;
$custom-dark: #000000;
JSON
{
  "hex": "#504ae6",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 230
  },
  "hsl": {
    "h": 242.308,
    "s": 75.728,
    "l": 59.608
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.22681,
    "h": 276.7
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#504AE6
secondary
#E2E4A8
accent
#F235EB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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