#AF2251#AF2251

#AF2251 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.177 H 7.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2251
RGBrgb(175, 34, 81)
HSLhsl(340, 67%, 41%)
HSVhsv(340, 81%, 69%)
CMYKcmyk(0%, 80.6%, 53.7%, 31.4%)
CIE-LABlab(39.34, 57.58, 8.81)
CIE-LCHlch(39.34, 58.25, 8.70°)
OKLaboklab(49.99% 0.1756 0.0226)
OKLCHoklch(49.99% 0.177 7.3)
XYZxyz(19.7383, 10.8549, 8.8388)
Luminance0.1085 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2251 #22AF80
analogous
#AF2297 #AF2251 #AF3922
triadic
#AF2251 #51AF22 #2251AF
tetradic
#AF2251 #97AF22 #22AF80 #3922AF
square
#AF2251 #97AF22 #22AF80 #3922AF
split-complementary
#AF2251 #22AF39 #2297AF
monochromatic
#490E22 #7C1839 #AF2251 #D8366C #E26992

Accessibility & contrast

On white

6.62
#AF2251 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#AF2251 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2251
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2251#FFFFFF#000000##FFFFFF
##AF22511.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484B52
Deuteranopia (green-blind)
#6D674E
Tritanopia (blue-blind)
#BF0037
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2251;
/* rgb */ color: rgb(175, 34, 81);
/* oklch */ color: oklch(50.0% 0.177 7.3);
Tailwind
colors: {
  custom: {
    50: '#cd6d81',
    500: '#af2251',
    950: '#000000',
  },
}
SCSS
$custom: #af2251;
$custom-light: #cd6d81;
$custom-dark: #000000;
JSON
{
  "hex": "#af2251",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 81
  },
  "hsl": {
    "h": 340,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49994,
    "c": 0.17702,
    "h": 7.3
  },
  "luminance": 0.10852
}

Semantic roles & 50–950 ramp

primary
#AF2251
secondary
#65C8A7
accent
#EAB13D
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2251

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

Preview Lab → · Contrast checker → · Palette generator →

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