#AF228E#AF228E

#AF228E is a mid, highly saturated pink. Relative luminance 0.122; OKLCH L 52.3% C 0.204 H 339.8°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AF228E
RGBrgb(175, 34, 142)
HSLhsl(314, 67%, 41%)
HSVhsv(314, 81%, 69%)
CMYKcmyk(0%, 80.6%, 18.9%, 31.4%)
CIE-LABlab(41.55, 64.11, -25.99)
CIE-LCHlch(41.55, 69.18, 337.93°)
OKLaboklab(52.33% 0.1915 -0.0703)
OKLCHoklch(52.33% 0.204 339.8)
XYZxyz(23.1344, 12.2134, 26.7250)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228E #22AF43
analogous
#8922AF #AF228E #AF2247
triadic
#AF228E #8EAF22 #228EAF
tetradic
#AF228E #AF8922 #22AF43 #2247AF
square
#AF228E #AF8922 #22AF43 #2247AF
split-complementary
#AF228E #47AF22 #22AF89
monochromatic
#490E3B #7C1864 #AF228E #D836B2 #E269C6

Accessibility & contrast

On white

6.10
#AF228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF228E
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228E#FFFFFF#000000##FFFFFF
##AF228E1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#5D6A8B
Tritanopia (blue-blind)
#BA2857
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228e;
/* rgb */ color: rgb(175, 34, 142);
/* oklch */ color: oklch(52.3% 0.204 339.8);
Tailwind
colors: {
  custom: {
    50: '#cb6faf',
    500: '#af228e',
    950: '#000000',
  },
}
SCSS
$custom: #af228e;
$custom-light: #cb6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#af228e",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 314.043,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52331,
    "c": 0.20399,
    "h": 339.8
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#AF228E
secondary
#65C87C
accent
#EA663D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF228E

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

Preview Lab → · Contrast checker → · Palette generator →

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