#AF227B#AF227B

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

Color values

HEX#AF227B
RGBrgb(175, 34, 123)
HSLhsl(322, 67%, 41%)
HSVhsv(322, 81%, 69%)
CMYKcmyk(0%, 80.6%, 29.7%, 31.4%)
CIE-LABlab(40.72, 61.71, -15.60)
CIE-LCHlch(40.72, 63.65, 345.82°)
OKLaboklab(51.46% 0.1884 -0.0411)
OKLCHoklch(51.46% 0.193 347.7)
XYZxyz(21.8275, 11.6906, 19.8421)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF227B #22AF56
analogous
#9C22AF #AF227B #AF2234
triadic
#AF227B #7BAF22 #227BAF
tetradic
#AF227B #AF9C22 #22AF56 #2234AF
square
#AF227B #AF9C22 #22AF56 #2234AF
split-complementary
#AF227B #34AF22 #22AF9C
monochromatic
#490E33 #7C1857 #AF227B #D8369C #E269B6

Accessibility & contrast

On white

6.29
#AF227B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF227B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF227B
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF227B#FFFFFF#000000##FFFFFF
##AF227B1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517D
Deuteranopia (green-blind)
#636978
Tritanopia (blue-blind)
#BC1A4D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af227b;
/* rgb */ color: rgb(175, 34, 123);
/* oklch */ color: oklch(51.5% 0.193 347.7);
Tailwind
colors: {
  custom: {
    50: '#cc6ea1',
    500: '#af227b',
    950: '#000000',
  },
}
SCSS
$custom: #af227b;
$custom-light: #cc6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#af227b",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 322.128,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51458,
    "c": 0.19282,
    "h": 347.7
  },
  "luminance": 0.11688
}

Semantic roles & 50–950 ramp

primary
#AF227B
secondary
#65C889
accent
#EA7D3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF227B

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

Preview Lab → · Contrast checker → · Palette generator →

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