#504CE5#504CE5

#504CE5 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.0% C 0.223 H 276.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#504CE5
RGBrgb(80, 76, 229)
HSLhsl(242, 75%, 60%)
HSVhsv(242, 67%, 90%)
CMYKcmyk(65.1%, 66.8%, 0%, 10.2%)
CIE-LABlab(42.05, 47.35, -76.92)
CIE-LCHlch(42.05, 90.33, 301.61°)
OKLaboklab(52.02% 0.0251 -0.222)
OKLCHoklch(52.02% 0.223 276.4)
XYZxyz(20.0309, 12.5298, 75.4764)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE5 #E1E54C
analogous
#4C94E5 #504CE5 #9D4CE5
triadic
#504CE5 #E5504C #4CE550
tetradic
#504CE5 #E54C94 #E1E54C #4CE59D
square
#504CE5 #E54C94 #E1E54C #4CE59D
split-complementary
#504CE5 #E59D4C #94E54C
monochromatic
#1B179F #241FD5 #504CE5 #8481ED #B8B7F5

Accessibility & contrast

On white

5.99
#504CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#504CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE5#FFFFFF#000000##FFFFFF
##504CE51.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AEA
Deuteranopia (green-blind)
#005CE2
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #504ce5;
/* rgb */ color: rgb(80, 76, 229);
/* oklch */ color: oklch(52.0% 0.223 276.4);
Tailwind
colors: {
  custom: {
    50: '#927fee',
    500: '#504ce5',
    950: '#000000',
  },
}
SCSS
$custom: #504ce5;
$custom-light: #927fee;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce5",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 241.569,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5202,
    "c": 0.22342,
    "h": 276.4
  },
  "luminance": 0.12531
}

Semantic roles & 50–950 ramp

primary
#504CE5
secondary
#E2E4A9
accent
#F137EC
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #504CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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