#504CD6#504CD6

#504CD6 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.7% C 0.205 H 277.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#504CD6
RGBrgb(80, 76, 214)
HSLhsl(242, 63%, 57%)
HSVhsv(242, 64%, 84%)
CMYKcmyk(62.6%, 64.5%, 0%, 16.1%)
CIE-LABlab(40.78, 42.53, -70.43)
CIE-LCHlch(40.78, 82.28, 301.12°)
OKLaboklab(50.71% 0.0267 -0.203)
OKLCHoklch(50.71% 0.205 277.5)
XYZxyz(18.0264, 11.7280, 64.9191)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD6 #D2D64C
analogous
#4C8DD6 #504CD6 #954CD6
triadic
#504CD6 #D6504C #4CD650
tetradic
#504CD6 #D64C8D #D2D64C #4CD695
square
#504CD6 #D64C8D #D2D64C #4CD695
split-complementary
#504CD6 #D6954C #8DD64C
monochromatic
#221F88 #2F2BBA #504CD6 #817EE1 #B1B0ED

Accessibility & contrast

On white

6.28
#504CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#504CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CD6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD6#FFFFFF#000000##FFFFFF
##504CD61.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#006F8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504cd6;
/* rgb */ color: rgb(80, 76, 214);
/* oklch */ color: oklch(50.7% 0.205 277.5);
Tailwind
colors: {
  custom: {
    50: '#8f7fe4',
    500: '#504cd6',
    950: '#000000',
  },
}
SCSS
$custom: #504cd6;
$custom-light: #8f7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd6",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 241.739,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50713,
    "c": 0.20474,
    "h": 277.5
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#504CD6
secondary
#D9DBA3
accent
#E642E1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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