#AF228D#AF228D

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

Color values

HEX#AF228D
RGBrgb(175, 34, 141)
HSLhsl(314, 67%, 41%)
HSVhsv(314, 81%, 69%)
CMYKcmyk(0%, 80.6%, 19.4%, 31.4%)
CIE-LABlab(41.51, 63.98, -25.46)
CIE-LCHlch(41.51, 68.85, 338.30°)
OKLaboklab(52.28% 0.1914 -0.0688)
OKLCHoklch(52.28% 0.203 340.2)
XYZxyz(23.0597, 12.1835, 26.3314)
Luminance0.1218 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF228D #22AF44
analogous
#8A22AF #AF228D #AF2246
triadic
#AF228D #8DAF22 #228DAF
tetradic
#AF228D #AF8A22 #22AF44 #2246AF
square
#AF228D #AF8A22 #22AF44 #2246AF
split-complementary
#AF228D #46AF22 #22AF8A
monochromatic
#490E3A #7C1864 #AF228D #D836B1 #E269C5

Accessibility & contrast

On white

6.11
#AF228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF228D
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF228D#FFFFFF#000000##FFFFFF
##AF228D1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#5D6A8A
Tritanopia (blue-blind)
#BA2756
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af228d;
/* rgb */ color: rgb(175, 34, 141);
/* oklch */ color: oklch(52.3% 0.203 340.2);
Tailwind
colors: {
  custom: {
    50: '#cb6fae',
    500: '#af228d',
    950: '#000000',
  },
}
SCSS
$custom: #af228d;
$custom-light: #cb6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#af228d",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 314.468,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52282,
    "c": 0.20336,
    "h": 340.2
  },
  "luminance": 0.12181
}

Semantic roles & 50–950 ramp

primary
#AF228D
secondary
#65C87D
accent
#EA673D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF228D

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

Preview Lab → · Contrast checker → · Palette generator →

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