#AF2255#AF2255

#AF2255 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.178 H 5.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2255
RGBrgb(175, 34, 85)
HSLhsl(338, 67%, 41%)
HSVhsv(338, 81%, 69%)
CMYKcmyk(0%, 80.6%, 51.4%, 31.4%)
CIE-LABlab(39.44, 57.90, 6.41)
CIE-LCHlch(39.44, 58.25, 6.32°)
OKLaboklab(50.11% 0.1771 0.0168)
OKLCHoklch(50.11% 0.178 5.4)
XYZxyz(19.8927, 10.9167, 9.6522)
Luminance0.1091 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2255 #22AF7C
analogous
#AF229B #AF2255 #AF3522
triadic
#AF2255 #55AF22 #2255AF
tetradic
#AF2255 #9BAF22 #22AF7C #3522AF
square
#AF2255 #9BAF22 #22AF7C #3522AF
split-complementary
#AF2255 #22AF35 #229BAF
monochromatic
#490E23 #7C183C #AF2255 #D83671 #E26995

Accessibility & contrast

On white

6.60
#AF2255 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#AF2255 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2255
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2255#FFFFFF#000000##FFFFFF
##AF22551.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474B56
Deuteranopia (green-blind)
#6C6752
Tritanopia (blue-blind)
#BF0039
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2255;
/* rgb */ color: rgb(175, 34, 85);
/* oklch */ color: oklch(50.1% 0.178 5.4);
Tailwind
colors: {
  custom: {
    50: '#cd6d84',
    500: '#af2255',
    950: '#000000',
  },
}
SCSS
$custom: #af2255;
$custom-light: #cd6d84;
$custom-dark: #000000;
JSON
{
  "hex": "#af2255",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 338.298,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.17786,
    "h": 5.4
  },
  "luminance": 0.10914
}

Semantic roles & 50–950 ramp

primary
#AF2255
secondary
#65C8A4
accent
#EAAC3D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2255

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

Preview Lab → · Contrast checker → · Palette generator →

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