#AF228B#AF228B

#AF228B is a mid, highly saturated pink. Relative luminance 0.121; OKLCH L 52.2% C 0.202 H 341.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF228B
RGBrgb(175, 34, 139)
HSLhsl(315, 67%, 41%)
HSVhsv(315, 81%, 69%)
CMYKcmyk(0%, 80.6%, 20.6%, 31.4%)
CIE-LABlab(41.41, 63.71, -24.38)
CIE-LCHlch(41.41, 68.21, 339.06°)
OKLaboklab(52.19% 0.1911 -0.0657)
OKLCHoklch(52.19% 0.202 341)
XYZxyz(22.9122, 12.1245, 25.5547)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228B #22AF46
analogous
#8C22AF #AF228B #AF2244
triadic
#AF228B #8BAF22 #228BAF
tetradic
#AF228B #AF8C22 #22AF46 #2244AF
square
#AF228B #AF8C22 #22AF46 #2244AF
split-complementary
#AF228B #44AF22 #22AF8C
monochromatic
#490E3A #7C1862 #AF228B #D836AF #E269C3

Accessibility & contrast

On white

6.13
#AF228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AF228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF228B
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228B#FFFFFF#000000##FFFFFF
##AF228B1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538E
Deuteranopia (green-blind)
#5E6A88
Tritanopia (blue-blind)
#BA2655
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228b;
/* rgb */ color: rgb(175, 34, 139);
/* oklch */ color: oklch(52.2% 0.202 341.0);
Tailwind
colors: {
  custom: {
    50: '#cb6fad',
    500: '#af228b',
    950: '#000000',
  },
}
SCSS
$custom: #af228b;
$custom-light: #cb6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#af228b",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 315.319,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52185,
    "c": 0.20211,
    "h": 341
  },
  "luminance": 0.12122
}

Semantic roles & 50–950 ramp

primary
#AF228B
secondary
#65C87E
accent
#EA6A3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF228B

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

Preview Lab → · Contrast checker → · Palette generator →

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