#AF2257#AF2257

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

Color values

HEX#AF2257
RGBrgb(175, 34, 87)
HSLhsl(337, 67%, 41%)
HSVhsv(337, 81%, 69%)
CMYKcmyk(0%, 80.6%, 50.3%, 31.4%)
CIE-LABlab(39.49, 58.06, 5.21)
CIE-LCHlch(39.49, 58.30, 5.13°)
OKLaboklab(50.16% 0.1778 0.0138)
OKLCHoklch(50.16% 0.178 4.5)
XYZxyz(19.9733, 10.9489, 10.0766)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2257 #22AF7A
analogous
#AF229D #AF2257 #AF3422
triadic
#AF2257 #57AF22 #2257AF
tetradic
#AF2257 #9DAF22 #22AF7A #3422AF
square
#AF2257 #9DAF22 #22AF7A #3422AF
split-complementary
#AF2257 #22AF34 #229DAF
monochromatic
#490E24 #7C183E #AF2257 #D83673 #E26997

Accessibility & contrast

On white

6.58
#AF2257 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#AF2257 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2257
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2257#FFFFFF#000000##FFFFFF
##AF22571.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474B58
Deuteranopia (green-blind)
#6C6754
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2257;
/* rgb */ color: rgb(175, 34, 87);
/* oklch */ color: oklch(50.2% 0.178 4.5);
Tailwind
colors: {
  custom: {
    50: '#cd6d86',
    500: '#af2257',
    950: '#000000',
  },
}
SCSS
$custom: #af2257;
$custom-light: #cd6d86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2257",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 337.447,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50163,
    "c": 0.17834,
    "h": 4.5
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#AF2257
secondary
#65C8A3
accent
#EAA93D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2257

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

Preview Lab → · Contrast checker → · Palette generator →

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