#504196#504196

#504196 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 43.7% C 0.134 H 287.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#504196
RGBrgb(80, 65, 150)
HSLhsl(251, 40%, 42%)
HSVhsv(251, 57%, 59%)
CMYKcmyk(46.7%, 56.7%, 0%, 41.2%)
CIE-LABlab(33.32, 28.84, -44.77)
CIE-LCHlch(33.32, 53.25, 302.79°)
OKLaboklab(43.71% 0.0406 -0.1276)
OKLCHoklch(43.71% 0.134 287.6)
XYZxyz(10.7020, 7.6876, 29.7682)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504196 #879641
analogous
#415D96 #504196 #7B4196
triadic
#504196 #965041 #419650
tetradic
#504196 #96415D #879641 #41967B
square
#504196 #96415D #879641 #41967B
split-complementary
#504196 #967B41 #5D9641
monochromatic
#221C41 #392E6B #504196 #6C5CB8 #9387CB

Accessibility & contrast

On white

8.28
#504196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#504196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504196
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504196#FFFFFF#000000##FFFFFF
##5041961.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105099
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#3A5465
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #504196;
/* rgb */ color: rgb(80, 65, 150);
/* oklch */ color: oklch(43.7% 0.134 287.6);
Tailwind
colors: {
  custom: {
    50: '#8676b5',
    500: '#504196',
    950: '#000000',
  },
}
SCSS
$custom: #504196;
$custom-light: #8676b5;
$custom-dark: #000000;
JSON
{
  "hex": "#504196",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 150
  },
  "hsl": {
    "h": 250.588,
    "s": 39.535,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43708,
    "c": 0.1339,
    "h": 287.6
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#504196
secondary
#ACB67D
accent
#CF58BA
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #504196

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

Preview Lab → · Contrast checker → · Palette generator →

#504196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva