#504166#504166

#504166 is a dark, moderate violet. Relative luminance 0.064; OKLCH L 40.7% C 0.063 H 302.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#504166
RGBrgb(80, 65, 102)
HSLhsl(264, 22%, 33%)
HSVhsv(264, 36%, 40%)
CMYKcmyk(21.6%, 36.3%, 0%, 60%)
CIE-LABlab(30.51, 14.90, -19.32)
CIE-LCHlch(30.51, 24.40, 307.64°)
OKLaboklab(40.68% 0.0338 -0.0534)
OKLCHoklch(40.68% 0.063 302.3)
XYZxyz(7.5963, 6.4454, 13.4117)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504166 #576641
analogous
#414466 #504166 #624166
triadic
#504166 #665041 #416650
tetradic
#504166 #664144 #576641 #416662
square
#504166 #664144 #576641 #416662
split-complementary
#504166 #666241 #446641
monochromatic
#15111B #332941 #504166 #6D598B #8C78A9

Accessibility & contrast

On white

9.17
#504166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#504166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504166
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504166#FFFFFF#000000##FFFFFF
##5041661.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394867
Deuteranopia (green-blind)
#3C4865
Tritanopia (blue-blind)
#4C474F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #504166;
/* rgb */ color: rgb(80, 65, 102);
/* oklch */ color: oklch(40.7% 0.063 302.3);
Tailwind
colors: {
  custom: {
    50: '#827591',
    500: '#504166',
    950: '#000000',
  },
}
SCSS
$custom: #504166;
$custom-light: #827591;
$custom-dark: #000000;
JSON
{
  "hex": "#504166",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 264.324,
    "s": 22.156,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.0632,
    "h": 302.3
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#504166
secondary
#85956E
accent
#BF699C
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#0A080D
muted
#7C7B7D

Preview Lab

Preview with #504166

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

Preview Lab → · Contrast checker → · Palette generator →

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