#502247#502247

#502247 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.2% C 0.086 H 335.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#502247
RGBrgb(80, 34, 71)
HSLhsl(312, 40%, 22%)
HSVhsv(312, 58%, 31%)
CMYKcmyk(0%, 57.5%, 11.2%, 68.6%)
CIE-LABlab(21.23, 27.11, -13.31)
CIE-LCHlch(21.23, 30.20, 333.85°)
OKLaboklab(33.2% 0.0786 -0.036)
OKLCHoklch(33.2% 0.086 335.4)
XYZxyz(5.0176, 3.3048, 6.3336)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502247 #22502B
analogous
#422250 #502247 #502230
triadic
#502247 #475022 #224750
tetradic
#502247 #504222 #22502B #223050
square
#502247 #504222 #22502B #223050
split-complementary
#502247 #305022 #225042
monochromatic
#150913 #251021 #502247 #7B346D #A64793

Accessibility & contrast

On white

12.64
#502247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502247
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502247#FFFFFF#000000##FFFFFF
##5022471.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222F48
Deuteranopia (green-blind)
#2F3546
Tritanopia (blue-blind)
#542431
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #502247;
/* rgb */ color: rgb(80, 34, 71);
/* oklch */ color: oklch(33.2% 0.086 335.4);
Tailwind
colors: {
  custom: {
    50: '#835f7a',
    500: '#502247',
    950: '#000000',
  },
}
SCSS
$custom: #502247;
$custom-light: #835f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#502247",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 311.739,
    "s": 40.351,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33202,
    "c": 0.08647,
    "h": 335.4
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#502247
secondary
#4A8455
accent
#D06F58
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #502247

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

Preview Lab → · Contrast checker → · Palette generator →

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