#504288#504288

#504288 is a dark, moderate violet. Relative luminance 0.074; OKLCH L 42.9% C 0.112 H 290.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#504288
RGBrgb(80, 66, 136)
HSLhsl(252, 35%, 40%)
HSVhsv(252, 51%, 53%)
CMYKcmyk(41.2%, 51.5%, 0%, 46.7%)
CIE-LABlab(32.66, 23.93, -37.26)
CIE-LCHlch(32.66, 44.28, 302.71°)
OKLaboklab(42.92% 0.0385 -0.1056)
OKLCHoklch(42.92% 0.112 290)
XYZxyz(9.6992, 7.3792, 24.2011)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504288 #7A8842
analogous
#425788 #504288 #734288
triadic
#504288 #885042 #428850
tetradic
#504288 #884257 #7A8842 #428873
square
#504288 #884257 #7A8842 #428873
split-complementary
#504288 #887342 #578842
monochromatic
#201A36 #382E5F #504288 #6A59AE #8F82C2

Accessibility & contrast

On white

8.48
#504288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#504288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504288
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504288#FFFFFF#000000##FFFFFF
##5042881.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E8A
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#41505E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #504288;
/* rgb */ color: rgb(80, 66, 136);
/* oklch */ color: oklch(42.9% 0.112 290.0);
Tailwind
colors: {
  custom: {
    50: '#8476ab',
    500: '#504288',
    950: '#000000',
  },
}
SCSS
$custom: #504288;
$custom-light: #8476ab;
$custom-dark: #000000;
JSON
{
  "hex": "#504288",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 252,
    "s": 34.653,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42915,
    "c": 0.11236,
    "h": 290
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#504288
secondary
#A3AD79
accent
#CB5DB5
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #504288

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

Preview Lab → · Contrast checker → · Palette generator →

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