#AF2A7C#AF2A7C

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

Color values

HEX#AF2A7C
RGBrgb(175, 42, 124)
HSLhsl(323, 61%, 43%)
HSVhsv(323, 76%, 69%)
CMYKcmyk(0%, 76%, 29.1%, 31.4%)
CIE-LABlab(41.58, 59.50, -14.91)
CIE-LCHlch(41.58, 61.34, 345.93°)
OKLaboklab(52.09% 0.1813 -0.0393)
OKLCHoklch(52.09% 0.186 347.8)
XYZxyz(22.1464, 12.2276, 20.2588)
Luminance0.1222 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A7C #2AAF5D
analogous
#A02AAF #AF2A7C #AF2A39
triadic
#AF2A7C #7CAF2A #2A7CAF
tetradic
#AF2A7C #AFA02A #2AAF5D #2A39AF
square
#AF2A7C #AFA02A #2AAF5D #2A39AF
split-complementary
#AF2A7C #39AF2A #2AAFA0
monochromatic
#4C1236 #7E1E59 #AF2A7C #D2449C #DE75B6

Accessibility & contrast

On white

6.10
#AF2A7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A7C
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A7C#FFFFFF#000000##FFFFFF
##AF2A7C1.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537E
Deuteranopia (green-blind)
#656A79
Tritanopia (blue-blind)
#BC2450
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a7c;
/* rgb */ color: rgb(175, 42, 124);
/* oklch */ color: oklch(52.1% 0.186 347.8);
Tailwind
colors: {
  custom: {
    50: '#cb71a2',
    500: '#af2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #af2a7c;
$custom-light: #cb71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a7c",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 323.008,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52093,
    "c": 0.18554,
    "h": 347.8
  },
  "luminance": 0.12225
}

Semantic roles & 50–950 ramp

primary
#AF2A7C
secondary
#6FC690
accent
#E48143
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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