#AF226E#AF226E

#AF226E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.186 H 353.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AF226E
RGBrgb(175, 34, 110)
HSLhsl(328, 67%, 41%)
HSVhsv(328, 81%, 69%)
CMYKcmyk(0%, 80.6%, 37.1%, 31.4%)
CIE-LABlab(40.22, 60.25, -8.24)
CIE-LCHlch(40.22, 60.81, 352.21°)
OKLaboklab(50.93% 0.1852 -0.0211)
OKLCHoklch(50.93% 0.186 353.5)
XYZxyz(21.0671, 11.3865, 15.8372)
Luminance0.1138 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF226E #22AF63
analogous
#A922AF #AF226E #AF2227
triadic
#AF226E #6EAF22 #226EAF
tetradic
#AF226E #AFA922 #22AF63 #2227AF
square
#AF226E #AFA922 #22AF63 #2227AF
split-complementary
#AF226E #27AF22 #22AFA9
monochromatic
#490E2E #7C184E #AF226E #D8368D #E269AA

Accessibility & contrast

On white

6.41
#AF226E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF226E
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF226E#FFFFFF#000000##FFFFFF
##AF226E1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4E70
Deuteranopia (green-blind)
#67686B
Tritanopia (blue-blind)
#BD0E46
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af226e;
/* rgb */ color: rgb(175, 34, 110);
/* oklch */ color: oklch(50.9% 0.186 353.5);
Tailwind
colors: {
  custom: {
    50: '#cc6e97',
    500: '#af226e',
    950: '#000000',
  },
}
SCSS
$custom: #af226e;
$custom-light: #cc6e97;
$custom-dark: #000000;
JSON
{
  "hex": "#af226e",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 327.66,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50935,
    "c": 0.18641,
    "h": 353.5
  },
  "luminance": 0.11384
}

Semantic roles & 50–950 ramp

primary
#AF226E
secondary
#65C893
accent
#EA8D3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF226E

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

Preview Lab → · Contrast checker → · Palette generator →

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