#AF225F#AF225F

#AF225F is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.181 H 0.6°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#AF225F
RGBrgb(175, 34, 95)
HSLhsl(334, 67%, 41%)
HSVhsv(334, 81%, 69%)
CMYKcmyk(0%, 80.6%, 45.7%, 31.4%)
CIE-LABlab(39.73, 58.76, 0.47)
CIE-LCHlch(39.73, 58.77, 0.46°)
OKLaboklab(50.41% 0.1806 0.0019)
OKLCHoklch(50.41% 0.181 0.6)
XYZxyz(20.3184, 11.0870, 11.8943)
Luminance0.1108 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF225F #22AF72
analogous
#AF22A5 #AF225F #AF2C22
triadic
#AF225F #5FAF22 #225FAF
tetradic
#AF225F #A5AF22 #22AF72 #2C22AF
square
#AF225F #A5AF22 #22AF72 #2C22AF
split-complementary
#AF225F #22AF2C #22A5AF
monochromatic
#490E27 #7C1843 #AF225F #D8367C #E2699E

Accessibility & contrast

On white

6.53
#AF225F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#AF225F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF225F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF225F#FFFFFF#000000##FFFFFF
##AF225F1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454C60
Deuteranopia (green-blind)
#6A675C
Tritanopia (blue-blind)
#BE003E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af225f;
/* rgb */ color: rgb(175, 34, 95);
/* oklch */ color: oklch(50.4% 0.181 0.6);
Tailwind
colors: {
  custom: {
    50: '#cd6d8c',
    500: '#af225f',
    950: '#000000',
  },
}
SCSS
$custom: #af225f;
$custom-light: #cd6d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#af225f",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 334.043,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50409,
    "c": 0.18062,
    "h": 0.6
  },
  "luminance": 0.11084
}

Semantic roles & 50–950 ramp

primary
#AF225F
secondary
#65C89D
accent
#EAA03D
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #AF225F

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

Preview Lab → · Contrast checker → · Palette generator →

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