#504CE8#504CE8

#504CE8 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.3% C 0.227 H 276.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#504CE8
RGBrgb(80, 76, 232)
HSLhsl(242, 77%, 60%)
HSVhsv(242, 67%, 91%)
CMYKcmyk(65.5%, 67.2%, 0%, 9%)
CIE-LABlab(42.31, 48.31, -78.20)
CIE-LCHlch(42.31, 91.92, 301.71°)
OKLaboklab(52.29% 0.0247 -0.2257)
OKLCHoklch(52.29% 0.227 276.2)
XYZxyz(20.4534, 12.6988, 77.7015)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE8 #E4E84C
analogous
#4C96E8 #504CE8 #9E4CE8
triadic
#504CE8 #E8504C #4CE850
tetradic
#504CE8 #E84C96 #E4E84C #4CE89E
square
#504CE8 #E84C96 #E4E84C #4CE89E
split-complementary
#504CE8 #E89E4C #96E84C
monochromatic
#1915A4 #211CDB #504CE8 #8582EF #BAB8F6

Accessibility & contrast

On white

5.93
#504CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#504CE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE8#FFFFFF#000000##FFFFFF
##504CE81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BED
Deuteranopia (green-blind)
#005DE5
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504ce8;
/* rgb */ color: rgb(80, 76, 232);
/* oklch */ color: oklch(52.3% 0.227 276.2);
Tailwind
colors: {
  custom: {
    50: '#937ff1',
    500: '#504ce8',
    950: '#000000',
  },
}
SCSS
$custom: #504ce8;
$custom-light: #937ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce8",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 232
  },
  "hsl": {
    "h": 241.538,
    "s": 77.228,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52288,
    "c": 0.22709,
    "h": 276.2
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#504CE8
secondary
#E4E6AA
accent
#D90CD4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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