#AF228C#AF228C

#AF228C is a mid, highly saturated pink. Relative luminance 0.122; OKLCH L 52.2% C 0.203 H 340.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF228C
RGBrgb(175, 34, 140)
HSLhsl(315, 67%, 41%)
HSVhsv(315, 81%, 69%)
CMYKcmyk(0%, 80.6%, 20%, 31.4%)
CIE-LABlab(41.46, 63.84, -24.92)
CIE-LCHlch(41.46, 68.53, 338.68°)
OKLaboklab(52.23% 0.1913 -0.0673)
OKLCHoklch(52.23% 0.203 340.6)
XYZxyz(22.9856, 12.1539, 25.9413)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228C #22AF45
analogous
#8B22AF #AF228C #AF2245
triadic
#AF228C #8CAF22 #228CAF
tetradic
#AF228C #AF8B22 #22AF45 #2245AF
square
#AF228C #AF8B22 #22AF45 #2245AF
split-complementary
#AF228C #45AF22 #22AF8B
monochromatic
#490E3A #7C1863 #AF228C #D836B0 #E269C4

Accessibility & contrast

On white

6.12
#AF228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF228C
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228C#FFFFFF#000000##FFFFFF
##AF228C1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#5E6A89
Tritanopia (blue-blind)
#BA2756
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228c;
/* rgb */ color: rgb(175, 34, 140);
/* oklch */ color: oklch(52.2% 0.203 340.6);
Tailwind
colors: {
  custom: {
    50: '#cb6fae',
    500: '#af228c',
    950: '#000000',
  },
}
SCSS
$custom: #af228c;
$custom-light: #cb6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#af228c",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 314.894,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.20273,
    "h": 340.6
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF228C

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

Preview Lab → · Contrast checker → · Palette generator →

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