#AF2A82#AF2A82

#AF2A82 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.189 H 345.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF2A82
RGBrgb(175, 42, 130)
HSLhsl(320, 61%, 43%)
HSVhsv(320, 76%, 69%)
CMYKcmyk(0%, 76%, 25.7%, 31.4%)
CIE-LABlab(41.82, 60.25, -18.23)
CIE-LCHlch(41.82, 62.95, 343.16°)
OKLaboklab(52.35% 0.1826 -0.0485)
OKLCHoklch(52.35% 0.189 345.1)
XYZxyz(22.5374, 12.3841, 22.3182)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A82 #2AAF57
analogous
#9A2AAF #AF2A82 #AF2A3F
triadic
#AF2A82 #82AF2A #2A82AF
tetradic
#AF2A82 #AF9A2A #2AAF57 #2A3FAF
square
#AF2A82 #AF9A2A #2AAF57 #2A3FAF
split-complementary
#AF2A82 #3FAF2A #2AAF9A
monochromatic
#4C1239 #7E1E5D #AF2A82 #D244A2 #DE75BB

Accessibility & contrast

On white

6.04
#AF2A82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF2A82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A82
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A82#FFFFFF#000000##FFFFFF
##AF2A821.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5484
Deuteranopia (green-blind)
#646B7F
Tritanopia (blue-blind)
#BB2853
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a82;
/* rgb */ color: rgb(175, 42, 130);
/* oklch */ color: oklch(52.3% 0.189 345.1);
Tailwind
colors: {
  custom: {
    50: '#cb71a6',
    500: '#af2a82',
    950: '#000000',
  },
}
SCSS
$custom: #af2a82;
$custom-light: #cb71a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a82",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 320.301,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5235,
    "c": 0.18892,
    "h": 345.1
  },
  "luminance": 0.12382
}

Semantic roles & 50–950 ramp

primary
#AF2A82
secondary
#6FC68C
accent
#E47A43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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