#AF226D#AF226D

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

Color values

HEX#AF226D
RGBrgb(175, 34, 109)
HSLhsl(328, 67%, 41%)
HSVhsv(328, 81%, 69%)
CMYKcmyk(0%, 80.6%, 37.7%, 31.4%)
CIE-LABlab(40.19, 60.14, -7.67)
CIE-LCHlch(40.19, 60.63, 352.73°)
OKLaboklab(50.9% 0.1849 -0.0195)
OKLCHoklch(50.9% 0.186 354)
XYZxyz(21.0130, 11.3648, 15.5521)
Luminance0.1136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226D #22AF64
analogous
#AA22AF #AF226D #AF2226
triadic
#AF226D #6DAF22 #226DAF
tetradic
#AF226D #AFAA22 #22AF64 #2226AF
square
#AF226D #AFAA22 #22AF64 #2226AF
split-complementary
#AF226D #26AF22 #22AFAA
monochromatic
#490E2D #7C184D #AF226D #D8368C #E269AA

Accessibility & contrast

On white

6.42
#AF226D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF226D
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF226D#FFFFFF#000000##FFFFFF
##AF226D1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404E6F
Deuteranopia (green-blind)
#67686A
Tritanopia (blue-blind)
#BD0C45
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af226d;
/* rgb */ color: rgb(175, 34, 109);
/* oklch */ color: oklch(50.9% 0.186 354.0);
Tailwind
colors: {
  custom: {
    50: '#cc6e96',
    500: '#af226d',
    950: '#000000',
  },
}
SCSS
$custom: #af226d;
$custom-light: #cc6e96;
$custom-dark: #000000;
JSON
{
  "hex": "#af226d",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 328.085,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50898,
    "c": 0.18597,
    "h": 354
  },
  "luminance": 0.11362
}

Semantic roles & 50–950 ramp

primary
#AF226D
secondary
#65C893
accent
#EA8E3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF226D

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

Preview Lab → · Contrast checker → · Palette generator →

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