#504682#504682

#504682 is a dark, moderate violet. Relative luminance 0.077; OKLCH L 43.3% C 0.097 H 289.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#504682
RGBrgb(80, 70, 130)
HSLhsl(250, 30%, 39%)
HSVhsv(250, 46%, 51%)
CMYKcmyk(38.5%, 46.2%, 0%, 49%)
CIE-LABlab(33.34, 19.57, -32.46)
CIE-LCHlch(33.34, 37.90, 301.08°)
OKLaboklab(43.32% 0.0322 -0.0915)
OKLCHoklch(43.32% 0.097 289.4)
XYZxyz(9.5266, 7.6972, 22.0985)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504682 #788246
analogous
#465A82 #504682 #6E4682
triadic
#504682 #825046 #468250
tetradic
#504682 #82465A #788246 #46826E
square
#504682 #82465A #788246 #46826E
split-complementary
#504682 #826E46 #5A8246
monochromatic
#1F1B32 #38315A #504682 #6A5DA8 #8E85BD

Accessibility & contrast

On white

8.27
#504682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504682
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504682#FFFFFF#000000##FFFFFF
##5046821.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315084
Deuteranopia (green-blind)
#314D81
Tritanopia (blue-blind)
#43525D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #504682;
/* rgb */ color: rgb(80, 70, 130);
/* oklch */ color: oklch(43.3% 0.097 289.4);
Tailwind
colors: {
  custom: {
    50: '#8379a6',
    500: '#504682',
    950: '#000000',
  },
}
SCSS
$custom: #504682;
$custom-light: #8379a6;
$custom-dark: #000000;
JSON
{
  "hex": "#504682",
  "rgb": {
    "r": 80,
    "g": 70,
    "b": 130
  },
  "hsl": {
    "h": 250,
    "s": 30,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43317,
    "c": 0.09697,
    "h": 289.4
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#504682
secondary
#A1A97B
accent
#C662B5
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B090F
muted
#7C7B7F

Preview Lab

Preview with #504682

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

Preview Lab → · Contrast checker → · Palette generator →

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