#AF226C#AF226C

#AF226C is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.9% C 0.186 H 354.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF226C
RGBrgb(175, 34, 108)
HSLhsl(329, 67%, 41%)
HSVhsv(329, 81%, 69%)
CMYKcmyk(0%, 80.6%, 38.3%, 31.4%)
CIE-LABlab(40.15, 60.04, -7.09)
CIE-LCHlch(40.15, 60.46, 353.26°)
OKLaboklab(50.86% 0.1847 -0.018)
OKLCHoklch(50.86% 0.186 354.4)
XYZxyz(20.9594, 11.3434, 15.2702)
Luminance0.1134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226C #22AF65
analogous
#AB22AF #AF226C #AF2225
triadic
#AF226C #6CAF22 #226CAF
tetradic
#AF226C #AFAB22 #22AF65 #2225AF
square
#AF226C #AFAB22 #22AF65 #2225AF
split-complementary
#AF226C #25AF22 #22AFAB
monochromatic
#490E2D #7C184C #AF226C #D8368B #E269A9

Accessibility & contrast

On white

6.43
#AF226C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AF226C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF226C
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF226C#FFFFFF#000000##FFFFFF
##AF226C1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404E6E
Deuteranopia (green-blind)
#686869
Tritanopia (blue-blind)
#BD0B45
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af226c;
/* rgb */ color: rgb(175, 34, 108);
/* oklch */ color: oklch(50.9% 0.186 354.4);
Tailwind
colors: {
  custom: {
    50: '#cc6d96',
    500: '#af226c',
    950: '#000000',
  },
}
SCSS
$custom: #af226c;
$custom-light: #cc6d96;
$custom-dark: #000000;
JSON
{
  "hex": "#af226c",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 328.511,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.18553,
    "h": 354.4
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#AF226C
secondary
#65C894
accent
#EA903D
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF226C

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

Preview Lab → · Contrast checker → · Palette generator →

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