#AF2882#AF2882

#AF2882 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.2% C 0.191 H 345.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AF2882
RGBrgb(175, 40, 130)
HSLhsl(320, 63%, 42%)
HSVhsv(320, 77%, 69%)
CMYKcmyk(0%, 77.1%, 25.7%, 31.4%)
CIE-LABlab(41.60, 60.86, -18.56)
CIE-LCHlch(41.60, 63.63, 343.04°)
OKLaboklab(52.19% 0.1845 -0.0494)
OKLCHoklch(52.19% 0.191 345)
XYZxyz(22.4682, 12.2457, 22.2952)
Luminance0.1224 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2882 #28AF55
analogous
#9928AF #AF2882 #AF283E
triadic
#AF2882 #82AF28 #2882AF
tetradic
#AF2882 #AF9928 #28AF55 #283EAF
square
#AF2882 #AF9928 #28AF55 #283EAF
split-complementary
#AF2882 #3EAF28 #28AF99
monochromatic
#4B1138 #7D1D5D #AF2882 #D441A3 #DF73BB

Accessibility & contrast

On white

6.09
#AF2882 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF2882 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2882
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2882#FFFFFF#000000##FFFFFF
##AF28821.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5484
Deuteranopia (green-blind)
#636A7F
Tritanopia (blue-blind)
#BB2652
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2882;
/* rgb */ color: rgb(175, 40, 130);
/* oklch */ color: oklch(52.2% 0.191 345.0);
Tailwind
colors: {
  custom: {
    50: '#cb70a6',
    500: '#af2882',
    950: '#000000',
  },
}
SCSS
$custom: #af2882;
$custom-light: #cb70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2882",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 320,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52194,
    "c": 0.191,
    "h": 345
  },
  "luminance": 0.12243
}

Semantic roles & 50–950 ramp

primary
#AF2882
secondary
#6DC68B
accent
#E67942
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2882

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

Preview Lab → · Contrast checker → · Palette generator →

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