#AF2A8F#AF2A8F

#AF2A8F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.197 H 339.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF2A8F
RGBrgb(175, 42, 143)
HSLhsl(314, 61%, 43%)
HSVhsv(314, 76%, 69%)
CMYKcmyk(0%, 76%, 18.3%, 31.4%)
CIE-LABlab(42.39, 61.98, -25.30)
CIE-LCHlch(42.39, 66.94, 337.80°)
OKLaboklab(52.95% 0.1847 -0.0684)
OKLCHoklch(52.95% 0.197 339.7)
XYZxyz(23.4657, 12.7554, 27.2075)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A8F #2AAF4A
analogous
#8C2AAF #AF2A8F #AF2A4D
triadic
#AF2A8F #8FAF2A #2A8FAF
tetradic
#AF2A8F #AF8C2A #2AAF4A #2A4DAF
square
#AF2A8F #AF8C2A #2AAF4A #2A4DAF
split-complementary
#AF2A8F #4DAF2A #2AAF8C
monochromatic
#4C123E #7E1E67 #AF2A8F #D244B0 #DE75C5

Accessibility & contrast

On white

5.91
#AF2A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF2A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A8F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A8F#FFFFFF#000000##FFFFFF
##AF2A8F1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335792
Deuteranopia (green-blind)
#5F6C8C
Tritanopia (blue-blind)
#B92F5A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2a8f;
/* rgb */ color: rgb(175, 42, 143);
/* oklch */ color: oklch(53.0% 0.197 339.7);
Tailwind
colors: {
  custom: {
    50: '#cb72b0',
    500: '#af2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a8f;
$custom-light: #cb72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a8f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 314.436,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52952,
    "c": 0.19697,
    "h": 339.7
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#AF2A8F
secondary
#6FC684
accent
#E46A43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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