#504282#504282

#504282 is a dark, moderate violet. Relative luminance 0.072; OKLCH L 42.5% C 0.104 H 291.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#504282
RGBrgb(80, 66, 130)
HSLhsl(253, 33%, 38%)
HSVhsv(253, 49%, 51%)
CMYKcmyk(38.5%, 49.2%, 0%, 49%)
CIE-LABlab(32.29, 22.14, -34.14)
CIE-LCHlch(32.29, 40.69, 302.96°)
OKLaboklab(42.52% 0.0378 -0.0964)
OKLCHoklch(42.52% 0.104 291.4)
XYZxyz(9.2847, 7.2134, 22.0179)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504282 #748242
analogous
#425482 #504282 #704282
triadic
#504282 #825042 #428250
tetradic
#504282 #824254 #748242 #428270
square
#504282 #824254 #748242 #428270
split-complementary
#504282 #827042 #548242
monochromatic
#1E1931 #372D59 #504282 #6957AA #8E80BE

Accessibility & contrast

On white

8.60
#504282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#504282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504282
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504282#FFFFFF#000000##FFFFFF
##5042821.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D84
Deuteranopia (green-blind)
#2C4B80
Tritanopia (blue-blind)
#434F5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504282;
/* rgb */ color: rgb(80, 66, 130);
/* oklch */ color: oklch(42.5% 0.104 291.4);
Tailwind
colors: {
  custom: {
    50: '#8476a7',
    500: '#504282',
    950: '#000000',
  },
}
SCSS
$custom: #504282;
$custom-light: #8476a7;
$custom-dark: #000000;
JSON
{
  "hex": "#504282",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 253.125,
    "s": 32.653,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.10356,
    "h": 291.4
  },
  "luminance": 0.07214
}

Semantic roles & 50–950 ramp

primary
#504282
secondary
#9EA977
accent
#C95FB2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #504282

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

Preview Lab → · Contrast checker → · Palette generator →

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