#AF226F#AF226F

#AF226F is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.0% C 0.187 H 353.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF226F
RGBrgb(175, 34, 111)
HSLhsl(327, 67%, 41%)
HSVhsv(327, 81%, 69%)
CMYKcmyk(0%, 80.6%, 36.6%, 31.4%)
CIE-LABlab(40.26, 60.36, -8.82)
CIE-LCHlch(40.26, 61.00, 351.69°)
OKLaboklab(50.97% 0.1855 -0.0226)
OKLCHoklch(50.97% 0.187 353.1)
XYZxyz(21.1219, 11.4084, 16.1256)
Luminance0.1141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226F #22AF62
analogous
#A822AF #AF226F #AF2228
triadic
#AF226F #6FAF22 #226FAF
tetradic
#AF226F #AFA822 #22AF62 #2228AF
square
#AF226F #AFA822 #22AF62 #2228AF
split-complementary
#AF226F #28AF22 #22AFA8
monochromatic
#490E2E #7C184E #AF226F #D8368F #E269AB

Accessibility & contrast

On white

6.40
#AF226F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AF226F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF226F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF226F#FFFFFF#000000##FFFFFF
##AF226F1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4F71
Deuteranopia (green-blind)
#67686C
Tritanopia (blue-blind)
#BD0F46
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af226f;
/* rgb */ color: rgb(175, 34, 111);
/* oklch */ color: oklch(51.0% 0.187 353.1);
Tailwind
colors: {
  custom: {
    50: '#cc6e98',
    500: '#af226f',
    950: '#000000',
  },
}
SCSS
$custom: #af226f;
$custom-light: #cc6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#af226f",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 327.234,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50973,
    "c": 0.18686,
    "h": 353.1
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#AF226F
secondary
#65C892
accent
#EA8C3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF226F

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

Preview Lab → · Contrast checker → · Palette generator →

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