#504285#504285

#504285 is a dark, moderate violet. Relative luminance 0.073; OKLCH L 42.7% C 0.108 H 290.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#504285
RGBrgb(80, 66, 133)
HSLhsl(253, 34%, 39%)
HSVhsv(253, 50%, 52%)
CMYKcmyk(39.8%, 50.4%, 0%, 47.8%)
CIE-LABlab(32.47, 23.03, -35.70)
CIE-LCHlch(32.47, 42.49, 302.82°)
OKLaboklab(42.72% 0.0382 -0.101)
OKLCHoklch(42.72% 0.108 290.7)
XYZxyz(9.4890, 7.2951, 23.0939)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504285 #778542
analogous
#425685 #504285 #724285
triadic
#504285 #855042 #428550
tetradic
#504285 #854256 #778542 #428572
square
#504285 #854256 #778542 #428572
split-complementary
#504285 #857242 #568542
monochromatic
#1F1933 #372E5C #504285 #6A58AC #8E81C0

Accessibility & contrast

On white

8.54
#504285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504285
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504285#FFFFFF#000000##FFFFFF
##5042851.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E87
Deuteranopia (green-blind)
#2A4B83
Tritanopia (blue-blind)
#424F5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504285;
/* rgb */ color: rgb(80, 66, 133);
/* oklch */ color: oklch(42.7% 0.108 290.7);
Tailwind
colors: {
  custom: {
    50: '#8476a9',
    500: '#504285',
    950: '#000000',
  },
}
SCSS
$custom: #504285;
$custom-light: #8476a9;
$custom-dark: #000000;
JSON
{
  "hex": "#504285",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 133
  },
  "hsl": {
    "h": 252.537,
    "s": 33.668,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.10797,
    "h": 290.7
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#504285
secondary
#A0AB78
accent
#CA5EB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #504285

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

Preview Lab → · Contrast checker → · Palette generator →

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