#AF226B#AF226B

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

Color values

HEX#AF226B
RGBrgb(175, 34, 107)
HSLhsl(329, 67%, 41%)
HSVhsv(329, 81%, 69%)
CMYKcmyk(0%, 80.6%, 38.9%, 31.4%)
CIE-LABlab(40.12, 59.93, -6.52)
CIE-LCHlch(40.12, 60.29, 353.79°)
OKLaboklab(50.82% 0.1844 -0.0164)
OKLCHoklch(50.82% 0.185 354.9)
XYZxyz(20.9065, 11.3222, 14.9916)
Luminance0.1132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226B #22AF66
analogous
#AC22AF #AF226B #AF2225
triadic
#AF226B #6BAF22 #226BAF
tetradic
#AF226B #AFAC22 #22AF66 #2225AF
square
#AF226B #AFAC22 #22AF66 #2225AF
split-complementary
#AF226B #25AF22 #22AFAC
monochromatic
#490E2C #7C184C #AF226B #D8368A #E269A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF226B#FFFFFF#000000##FFFFFF
##AF226B1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404E6D
Deuteranopia (green-blind)
#686868
Tritanopia (blue-blind)
#BD0A44
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af226b;
/* rgb */ color: rgb(175, 34, 107);
/* oklch */ color: oklch(50.8% 0.185 354.9);
Tailwind
colors: {
  custom: {
    50: '#cc6d95',
    500: '#af226b',
    950: '#000000',
  },
}
SCSS
$custom: #af226b;
$custom-light: #cc6d95;
$custom-dark: #000000;
JSON
{
  "hex": "#af226b",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 328.936,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50823,
    "c": 0.1851,
    "h": 354.9
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF226B

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

Preview Lab → · Contrast checker → · Palette generator →

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