#AF227D#AF227D

#AF227D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.5% C 0.194 H 346.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF227D
RGBrgb(175, 34, 125)
HSLhsl(321, 67%, 41%)
HSVhsv(321, 81%, 69%)
CMYKcmyk(0%, 80.6%, 28.6%, 31.4%)
CIE-LABlab(40.80, 61.95, -16.71)
CIE-LCHlch(40.80, 64.16, 344.90°)
OKLaboklab(51.54% 0.1888 -0.0442)
OKLCHoklch(51.54% 0.194 346.8)
XYZxyz(21.9540, 11.7412, 20.5082)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF227D #22AF54
analogous
#9A22AF #AF227D #AF2236
triadic
#AF227D #7DAF22 #227DAF
tetradic
#AF227D #AF9A22 #22AF54 #2236AF
square
#AF227D #AF9A22 #22AF54 #2236AF
split-complementary
#AF227D #36AF22 #22AF9A
monochromatic
#490E34 #7C1858 #AF227D #D8369F #E269B7

Accessibility & contrast

On white

6.27
#AF227D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF227D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF227D
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF227D#FFFFFF#000000##FFFFFF
##AF227D1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38517F
Deuteranopia (green-blind)
#63697A
Tritanopia (blue-blind)
#BC1C4E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af227d;
/* rgb */ color: rgb(175, 34, 125);
/* oklch */ color: oklch(51.5% 0.194 346.8);
Tailwind
colors: {
  custom: {
    50: '#cb6ea2',
    500: '#af227d',
    950: '#000000',
  },
}
SCSS
$custom: #af227d;
$custom-light: #cb6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#af227d",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 321.277,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51544,
    "c": 0.19391,
    "h": 346.8
  },
  "luminance": 0.11739
}

Semantic roles & 50–950 ramp

primary
#AF227D
secondary
#65C888
accent
#EA7B3D
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF227D

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

Preview Lab → · Contrast checker → · Palette generator →

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