#502248#502248

#502248 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.3% C 0.087 H 334.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#502248
RGBrgb(80, 34, 72)
HSLhsl(310, 40%, 22%)
HSVhsv(310, 58%, 31%)
CMYKcmyk(0%, 57.5%, 10%, 68.6%)
CIE-LABlab(21.27, 27.31, -13.92)
CIE-LCHlch(21.27, 30.65, 333.00°)
OKLaboklab(33.25% 0.0788 -0.0377)
OKLCHoklch(33.25% 0.087 334.4)
XYZxyz(5.0500, 3.3178, 6.5040)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502248 #22502A
analogous
#412250 #502248 #502231
triadic
#502248 #485022 #224850
tetradic
#502248 #504122 #22502A #223150
square
#502248 #504122 #22502A #223150
split-complementary
#502248 #315022 #225041
monochromatic
#150913 #251021 #502248 #7B346F #A64795

Accessibility & contrast

On white

12.62
#502248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#502248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502248
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502248#FFFFFF#000000##FFFFFF
##5022481.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222F49
Deuteranopia (green-blind)
#2F3647
Tritanopia (blue-blind)
#542531
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #502248;
/* rgb */ color: rgb(80, 34, 72);
/* oklch */ color: oklch(33.3% 0.087 334.4);
Tailwind
colors: {
  custom: {
    50: '#835f7b',
    500: '#502248',
    950: '#000000',
  },
}
SCSS
$custom: #502248;
$custom-light: #835f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#502248",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 72
  },
  "hsl": {
    "h": 310.435,
    "s": 40.351,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33254,
    "c": 0.08741,
    "h": 334.4
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#502248
secondary
#4A8454
accent
#D06D58
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #502248

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

Preview Lab → · Contrast checker → · Palette generator →

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