#AF2B7A#AF2B7A

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

Color values

HEX#AF2B7A
RGBrgb(175, 43, 122)
HSLhsl(324, 61%, 43%)
HSVhsv(324, 75%, 69%)
CMYKcmyk(0%, 75.4%, 30.3%, 31.4%)
CIE-LABlab(41.61, 58.94, -13.62)
CIE-LCHlch(41.61, 60.50, 346.99°)
OKLaboklab(52.09% 0.1799 -0.0357)
OKLCHoklch(52.09% 0.183 348.8)
XYZxyz(22.0571, 12.2494, 19.6114)
Luminance0.1225 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B7A #2BAF60
analogous
#A22BAF #AF2B7A #AF2B38
triadic
#AF2B7A #7AAF2B #2B7AAF
tetradic
#AF2B7A #AFA22B #2BAF60 #2B38AF
square
#AF2B7A #AFA22B #2BAF60 #2B38AF
split-complementary
#AF2B7A #38AF2B #2BAFA2
monochromatic
#4D1336 #7E1F58 #AF2B7A #D14699 #DE77B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2B7A#FFFFFF#000000##FFFFFF
##AF2B7A1.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)
#40537C
Deuteranopia (green-blind)
#666A77
Tritanopia (blue-blind)
#BC244F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2b7a;
/* rgb */ color: rgb(175, 43, 122);
/* oklch */ color: oklch(52.1% 0.183 348.8);
Tailwind
colors: {
  custom: {
    50: '#cb71a0',
    500: '#af2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #af2b7a;
$custom-light: #cb71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b7a",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 324.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52092,
    "c": 0.18339,
    "h": 348.8
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#AF2B7A
secondary
#70C593
accent
#E48444
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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