#502152#502152

#502152 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.099 H 325.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#502152
RGBrgb(80, 33, 82)
HSLhsl(298, 43%, 23%)
HSVhsv(298, 60%, 32%)
CMYKcmyk(2.4%, 59.8%, 0%, 67.8%)
CIE-LABlab(21.59, 29.89, -20.18)
CIE-LCHlch(21.59, 36.07, 325.98°)
OKLaboklab(33.66% 0.0823 -0.0556)
OKLCHoklch(33.66% 0.099 325.9)
XYZxyz(5.3750, 3.4027, 8.3547)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502152 #235221
analogous
#372152 #502152 #52213B
triadic
#502152 #525021 #215250
tetradic
#502152 #523721 #235221 #213B52
square
#502152 #523721 #235221 #213B52
split-complementary
#502152 #3B5221 #215237
monochromatic
#150916 #250F26 #502152 #7B337E #A544A9

Accessibility & contrast

On white

12.50
#502152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#502152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502152
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502152#FFFFFF#000000##FFFFFF
##5021521.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3054
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#522736
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #502152;
/* rgb */ color: rgb(80, 33, 82);
/* oklch */ color: oklch(33.7% 0.099 325.9);
Tailwind
colors: {
  custom: {
    50: '#835f83',
    500: '#502152',
    950: '#000000',
  },
}
SCSS
$custom: #502152;
$custom-light: #835f83;
$custom-dark: #000000;
JSON
{
  "hex": "#502152",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 297.551,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33658,
    "c": 0.09932,
    "h": 325.9
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#502152
secondary
#4B8649
accent
#D2555B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #502152

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

Preview Lab → · Contrast checker → · Palette generator →

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