#AF226A#AF226A

#AF226A is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.8% C 0.185 H 355.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF226A
RGBrgb(175, 34, 106)
HSLhsl(329, 67%, 41%)
HSVhsv(329, 81%, 69%)
CMYKcmyk(0%, 80.6%, 39.4%, 31.4%)
CIE-LABlab(40.08, 59.83, -5.94)
CIE-LCHlch(40.08, 60.13, 354.33°)
OKLaboklab(50.79% 0.1841 -0.0149)
OKLCHoklch(50.79% 0.185 355.4)
XYZxyz(20.8542, 11.3013, 14.7161)
Luminance0.1130 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226A #22AF67
analogous
#AD22AF #AF226A #AF2223
triadic
#AF226A #6AAF22 #226AAF
tetradic
#AF226A #AFAD22 #22AF67 #2223AF
square
#AF226A #AFAD22 #22AF67 #2223AF
split-complementary
#AF226A #23AF22 #22AFAD
monochromatic
#490E2C #7C184B #AF226A #D83689 #E269A7

Accessibility & contrast

On white

6.44
#AF226A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AF226A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF226A
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF226A#FFFFFF#000000##FFFFFF
##AF226A1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414E6C
Deuteranopia (green-blind)
#686867
Tritanopia (blue-blind)
#BD0843
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af226a;
/* rgb */ color: rgb(175, 34, 106);
/* oklch */ color: oklch(50.8% 0.185 355.4);
Tailwind
colors: {
  custom: {
    50: '#cc6d94',
    500: '#af226a',
    950: '#000000',
  },
}
SCSS
$custom: #af226a;
$custom-light: #cc6d94;
$custom-dark: #000000;
JSON
{
  "hex": "#af226a",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 329.362,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50787,
    "c": 0.18468,
    "h": 355.4
  },
  "luminance": 0.11299
}

Semantic roles & 50–950 ramp

primary
#AF226A
secondary
#65C895
accent
#EA923D
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF226A

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

Preview Lab → · Contrast checker → · Palette generator →

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