#504199#504199

#504199 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 43.9% C 0.138 H 287.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#504199
RGBrgb(80, 65, 153)
HSLhsl(250, 40%, 43%)
HSVhsv(250, 58%, 60%)
CMYKcmyk(47.7%, 57.5%, 0%, 40%)
CIE-LABlab(33.53, 29.77, -46.25)
CIE-LCHlch(33.53, 55.00, 302.76°)
OKLaboklab(43.93% 0.0406 -0.132)
OKLCHoklch(43.93% 0.138 287.1)
XYZxyz(10.9467, 7.7855, 31.0568)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504199 #8A9941
analogous
#415E99 #504199 #7C4199
triadic
#504199 #995041 #419950
tetradic
#504199 #99415E #8A9941 #41997C
square
#504199 #99415E #8A9941 #41997C
split-complementary
#504199 #997C41 #5E9941
monochromatic
#231D43 #3A2F6E #504199 #6D5DBA #9488CC

Accessibility & contrast

On white

8.21
#504199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#504199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504199
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504199#FFFFFF#000000##FFFFFF
##5041991.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09519C
Deuteranopia (green-blind)
#084C97
Tritanopia (blue-blind)
#385566
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #504199;
/* rgb */ color: rgb(80, 65, 153);
/* oklch */ color: oklch(43.9% 0.138 287.1);
Tailwind
colors: {
  custom: {
    50: '#8776b8',
    500: '#504199',
    950: '#000000',
  },
}
SCSS
$custom: #504199;
$custom-light: #8776b8;
$custom-dark: #000000;
JSON
{
  "hex": "#504199",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 153
  },
  "hsl": {
    "h": 250.227,
    "s": 40.367,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43929,
    "c": 0.13808,
    "h": 287.1
  },
  "luminance": 0.07786
}

Semantic roles & 50–950 ramp

primary
#504199
secondary
#AEB77F
accent
#D058BC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #504199

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

Preview Lab → · Contrast checker → · Palette generator →

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