#AF228F#AF228F

#AF228F is a mid, highly saturated pink. Relative luminance 0.122; OKLCH L 52.4% C 0.205 H 339.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AF228F
RGBrgb(175, 34, 143)
HSLhsl(314, 67%, 41%)
HSVhsv(314, 81%, 69%)
CMYKcmyk(0%, 80.6%, 18.3%, 31.4%)
CIE-LABlab(41.60, 64.24, -26.53)
CIE-LCHlch(41.60, 69.51, 337.56°)
OKLaboklab(52.38% 0.1916 -0.0718)
OKLCHoklch(52.38% 0.205 339.4)
XYZxyz(23.2098, 12.2435, 27.1222)
Luminance0.1224 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228F #22AF42
analogous
#8822AF #AF228F #AF2248
triadic
#AF228F #8FAF22 #228FAF
tetradic
#AF228F #AF8822 #22AF42 #2248AF
square
#AF228F #AF8822 #22AF42 #2248AF
split-complementary
#AF228F #48AF22 #22AF88
monochromatic
#490E3B #7C1865 #AF228F #D836B3 #E269C7

Accessibility & contrast

On white

6.09
#AF228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF228F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228F#FFFFFF#000000##FFFFFF
##AF228F1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#5D6A8C
Tritanopia (blue-blind)
#B92958
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228f;
/* rgb */ color: rgb(175, 34, 143);
/* oklch */ color: oklch(52.4% 0.205 339.4);
Tailwind
colors: {
  custom: {
    50: '#cb6fb0',
    500: '#af228f',
    950: '#000000',
  },
}
SCSS
$custom: #af228f;
$custom-light: #cb6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#af228f",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 313.617,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52381,
    "c": 0.20463,
    "h": 339.4
  },
  "luminance": 0.12241
}

Semantic roles & 50–950 ramp

primary
#AF228F
secondary
#65C87B
accent
#EA653D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF228F

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

Preview Lab → · Contrast checker → · Palette generator →

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