#AF227A#AF227A

#AF227A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.192 H 348.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF227A
RGBrgb(175, 34, 122)
HSLhsl(323, 67%, 41%)
HSVhsv(323, 81%, 69%)
CMYKcmyk(0%, 80.6%, 30.3%, 31.4%)
CIE-LABlab(40.68, 61.59, -15.04)
CIE-LCHlch(40.68, 63.40, 346.28°)
OKLaboklab(51.42% 0.1882 -0.0396)
OKLCHoklch(51.42% 0.192 348.1)
XYZxyz(21.7652, 11.6657, 19.5141)
Luminance0.1166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF227A #22AF57
analogous
#9D22AF #AF227A #AF2234
triadic
#AF227A #7AAF22 #227AAF
tetradic
#AF227A #AF9D22 #22AF57 #2234AF
square
#AF227A #AF9D22 #22AF57 #2234AF
split-complementary
#AF227A #34AF22 #22AF9D
monochromatic
#490E33 #7C1856 #AF227A #D8369B #E269B5

Accessibility & contrast

On white

6.30
#AF227A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF227A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF227A
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF227A#FFFFFF#000000##FFFFFF
##AF227A1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507C
Deuteranopia (green-blind)
#646977
Tritanopia (blue-blind)
#BC194C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af227a;
/* rgb */ color: rgb(175, 34, 122);
/* oklch */ color: oklch(51.4% 0.192 348.1);
Tailwind
colors: {
  custom: {
    50: '#cc6ea0',
    500: '#af227a',
    950: '#000000',
  },
}
SCSS
$custom: #af227a;
$custom-light: #cc6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#af227a",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 322.553,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.19229,
    "h": 348.1
  },
  "luminance": 0.11663
}

Semantic roles & 50–950 ramp

primary
#AF227A
secondary
#65C88A
accent
#EA7E3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF227A

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

Preview Lab → · Contrast checker → · Palette generator →

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