#AF2A85#AF2A85

#AF2A85 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.191 H 343.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF2A85
RGBrgb(175, 42, 133)
HSLhsl(319, 61%, 43%)
HSVhsv(319, 76%, 69%)
CMYKcmyk(0%, 76%, 24%, 31.4%)
CIE-LABlab(41.95, 60.64, -19.88)
CIE-LCHlch(41.95, 63.81, 341.85°)
OKLaboklab(52.48% 0.1832 -0.0531)
OKLCHoklch(52.48% 0.191 343.8)
XYZxyz(22.7417, 12.4658, 23.3942)
Luminance0.1246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A85 #2AAF54
analogous
#962AAF #AF2A85 #AF2A43
triadic
#AF2A85 #85AF2A #2A85AF
tetradic
#AF2A85 #AF962A #2AAF54 #2A43AF
square
#AF2A85 #AF962A #2AAF54 #2A43AF
split-complementary
#AF2A85 #43AF2A #2AAF96
monochromatic
#4C123A #7E1E5F #AF2A85 #D244A5 #DE75BD

Accessibility & contrast

On white

6.01
#AF2A85 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF2A85 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A85
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A85#FFFFFF#000000##FFFFFF
##AF2A851.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395587
Deuteranopia (green-blind)
#636B82
Tritanopia (blue-blind)
#BB2954
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a85;
/* rgb */ color: rgb(175, 42, 133);
/* oklch */ color: oklch(52.5% 0.191 343.8);
Tailwind
colors: {
  custom: {
    50: '#cb71a8',
    500: '#af2a85',
    950: '#000000',
  },
}
SCSS
$custom: #af2a85;
$custom-light: #cb71a8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a85",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 318.947,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52484,
    "c": 0.1907,
    "h": 343.8
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

primary
#AF2A85
secondary
#6FC68A
accent
#E47643
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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