#504197#504197

#504197 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 43.8% C 0.135 H 287.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#504197
RGBrgb(80, 65, 151)
HSLhsl(250, 40%, 42%)
HSVhsv(250, 57%, 59%)
CMYKcmyk(47%, 57%, 0%, 40.8%)
CIE-LABlab(33.39, 29.15, -45.26)
CIE-LCHlch(33.39, 53.84, 302.78°)
OKLaboklab(43.78% 0.0406 -0.1291)
OKLCHoklch(43.78% 0.135 287.5)
XYZxyz(10.7829, 7.7200, 30.1941)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504197 #889741
analogous
#415D97 #504197 #7B4197
triadic
#504197 #975041 #419750
tetradic
#504197 #97415D #889741 #41977B
square
#504197 #97415D #889741 #41977B
split-complementary
#504197 #977B41 #5D9741
monochromatic
#231C41 #392F6C #504197 #6C5CB9 #9387CB

Accessibility & contrast

On white

8.25
#504197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504197
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504197#FFFFFF#000000##FFFFFF
##5041971.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519A
Deuteranopia (green-blind)
#0E4C95
Tritanopia (blue-blind)
#395465
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #504197;
/* rgb */ color: rgb(80, 65, 151);
/* oklch */ color: oklch(43.8% 0.135 287.5);
Tailwind
colors: {
  custom: {
    50: '#8676b6',
    500: '#504197',
    950: '#000000',
  },
}
SCSS
$custom: #504197;
$custom-light: #8676b6;
$custom-dark: #000000;
JSON
{
  "hex": "#504197",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 250.465,
    "s": 39.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43782,
    "c": 0.1353,
    "h": 287.5
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#504197
secondary
#ACB67E
accent
#D058BB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #504197

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

Preview Lab → · Contrast checker → · Palette generator →

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