#AF228A#AF228A

#AF228A is a mid, highly saturated pink. Relative luminance 0.121; OKLCH L 52.1% C 0.201 H 341.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AF228A
RGBrgb(175, 34, 138)
HSLhsl(316, 67%, 41%)
HSVhsv(316, 81%, 69%)
CMYKcmyk(0%, 80.6%, 21.1%, 31.4%)
CIE-LABlab(41.37, 63.58, -23.84)
CIE-LCHlch(41.37, 67.90, 339.45°)
OKLaboklab(52.14% 0.191 -0.0642)
OKLCHoklch(52.14% 0.201 341.4)
XYZxyz(22.8395, 12.0954, 25.1717)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228A #22AF47
analogous
#8D22AF #AF228A #AF2243
triadic
#AF228A #8AAF22 #228AAF
tetradic
#AF228A #AF8D22 #22AF47 #2243AF
square
#AF228A #AF8D22 #22AF47 #2243AF
split-complementary
#AF228A #43AF22 #22AF8D
monochromatic
#490E39 #7C1862 #AF228A #D836AE #E269C2

Accessibility & contrast

On white

6.14
#AF228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF228A
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228A#FFFFFF#000000##FFFFFF
##AF228A1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#BA2555
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228a;
/* rgb */ color: rgb(175, 34, 138);
/* oklch */ color: oklch(52.1% 0.201 341.4);
Tailwind
colors: {
  custom: {
    50: '#cb6fac',
    500: '#af228a',
    950: '#000000',
  },
}
SCSS
$custom: #af228a;
$custom-light: #cb6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#af228a",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 315.745,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.20149,
    "h": 341.4
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#AF228A
secondary
#65C87F
accent
#EA6B3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF228A

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

Preview Lab → · Contrast checker → · Palette generator →

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