#AF2A7B#AF2A7B

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

Color values

HEX#AF2A7B
RGBrgb(175, 42, 123)
HSLhsl(323, 61%, 43%)
HSVhsv(323, 76%, 69%)
CMYKcmyk(0%, 76%, 29.7%, 31.4%)
CIE-LABlab(41.54, 59.38, -14.35)
CIE-LCHlch(41.54, 61.09, 346.41°)
OKLaboklab(52.05% 0.1811 -0.0377)
OKLCHoklch(52.05% 0.185 348.2)
XYZxyz(22.0834, 12.2025, 19.9274)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A7B #2AAF5E
analogous
#A12AAF #AF2A7B #AF2A38
triadic
#AF2A7B #7BAF2A #2A7BAF
tetradic
#AF2A7B #AFA12A #2AAF5E #2A38AF
square
#AF2A7B #AFA12A #2AAF5E #2A38AF
split-complementary
#AF2A7B #38AF2A #2AAFA1
monochromatic
#4C1236 #7E1E58 #AF2A7B #D2449B #DE75B5

Accessibility & contrast

On white

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

On black

3.44
#AF2A7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF2A7B#FFFFFF#000000##FFFFFF
##AF2A7B1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537D
Deuteranopia (green-blind)
#666A78
Tritanopia (blue-blind)
#BC234F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a7b;
/* rgb */ color: rgb(175, 42, 123);
/* oklch */ color: oklch(52.1% 0.185 348.2);
Tailwind
colors: {
  custom: {
    50: '#cb71a1',
    500: '#af2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #af2a7b;
$custom-light: #cb71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a7b",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 323.459,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52051,
    "c": 0.18499,
    "h": 348.2
  },
  "luminance": 0.122
}

Semantic roles & 50–950 ramp

primary
#AF2A7B
secondary
#6FC691
accent
#E48243
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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