#504286#504286

#504286 is a dark, moderate violet. Relative luminance 0.073; OKLCH L 42.8% C 0.109 H 290.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#504286
RGBrgb(80, 66, 134)
HSLhsl(252, 34%, 39%)
HSVhsv(252, 51%, 53%)
CMYKcmyk(40.3%, 50.7%, 0%, 47.5%)
CIE-LABlab(32.53, 23.33, -36.23)
CIE-LCHlch(32.53, 43.09, 302.78°)
OKLaboklab(42.78% 0.0383 -0.1025)
OKLCHoklch(42.78% 0.109 290.5)
XYZxyz(9.5584, 7.3229, 23.4595)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504286 #788642
analogous
#425686 #504286 #724286
triadic
#504286 #865042 #428650
tetradic
#504286 #864256 #788642 #428672
square
#504286 #864256 #788642 #428672
split-complementary
#504286 #867242 #568642
monochromatic
#1F1A34 #382E5D #504286 #6A58AD #8E81C1

Accessibility & contrast

On white

8.52
#504286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#504286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504286
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504286#FFFFFF#000000##FFFFFF
##5042861.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E88
Deuteranopia (green-blind)
#294B84
Tritanopia (blue-blind)
#42505D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504286;
/* rgb */ color: rgb(80, 66, 134);
/* oklch */ color: oklch(42.8% 0.109 290.5);
Tailwind
colors: {
  custom: {
    50: '#8476aa',
    500: '#504286',
    950: '#000000',
  },
}
SCSS
$custom: #504286;
$custom-light: #8476aa;
$custom-dark: #000000;
JSON
{
  "hex": "#504286",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 252.353,
    "s": 34,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.10944,
    "h": 290.5
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#504286
secondary
#A1AC78
accent
#CA5EB4
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #504286

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

Preview Lab → · Contrast checker → · Palette generator →

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