#502156#502156

#502156 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.9% C 0.104 H 323.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#502156
RGBrgb(80, 33, 86)
HSLhsl(293, 45%, 23%)
HSVhsv(293, 62%, 34%)
CMYKcmyk(7%, 61.6%, 0%, 66.3%)
CIE-LABlab(21.82, 30.75, -22.49)
CIE-LCHlch(21.82, 38.10, 323.82°)
OKLaboklab(33.9% 0.0827 -0.0623)
OKLCHoklch(33.9% 0.104 323)
XYZxyz(5.5317, 3.4654, 9.1798)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502156 #275621
analogous
#352156 #502156 #562141
triadic
#502156 #565021 #215650
tetradic
#502156 #563521 #275621 #214156
square
#502156 #563521 #275621 #214156
split-complementary
#502156 #415621 #215635
monochromatic
#150816 #27102A #502156 #793282 #A243AE

Accessibility & contrast

On white

12.40
#502156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#502156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502156
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502156#FFFFFF#000000##FFFFFF
##5021561.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183158
Deuteranopia (green-blind)
#283655
Tritanopia (blue-blind)
#512838
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #502156;
/* rgb */ color: rgb(80, 33, 86);
/* oklch */ color: oklch(33.9% 0.104 323.0);
Tailwind
colors: {
  custom: {
    50: '#835f86',
    500: '#502156',
    950: '#000000',
  },
}
SCSS
$custom: #502156;
$custom-light: #835f86;
$custom-dark: #000000;
JSON
{
  "hex": "#502156",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 293.208,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.10358,
    "h": 323
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#502156
secondary
#508A49
accent
#D45462
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #502156

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

Preview Lab → · Contrast checker → · Palette generator →

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