#AF2256#AF2256

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

Color values

HEX#AF2256
RGBrgb(175, 34, 86)
HSLhsl(338, 67%, 41%)
HSVhsv(338, 81%, 69%)
CMYKcmyk(0%, 80.6%, 50.9%, 31.4%)
CIE-LABlab(39.47, 57.98, 5.81)
CIE-LCHlch(39.47, 58.27, 5.72°)
OKLaboklab(50.13% 0.1774 0.0153)
OKLCHoklch(50.13% 0.178 4.9)
XYZxyz(19.9327, 10.9327, 9.8629)
Luminance0.1093 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2256 #22AF7B
analogous
#AF229C #AF2256 #AF3422
triadic
#AF2256 #56AF22 #2256AF
tetradic
#AF2256 #9CAF22 #22AF7B #3422AF
square
#AF2256 #9CAF22 #22AF7B #3422AF
split-complementary
#AF2256 #22AF34 #229CAF
monochromatic
#490E24 #7C183D #AF2256 #D83672 #E26996

Accessibility & contrast

On white

6.59
#AF2256 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2256
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2256#FFFFFF#000000##FFFFFF
##AF22561.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2256;
/* rgb */ color: rgb(175, 34, 86);
/* oklch */ color: oklch(50.1% 0.178 4.9);
Tailwind
colors: {
  custom: {
    50: '#cd6d85',
    500: '#af2256',
    950: '#000000',
  },
}
SCSS
$custom: #af2256;
$custom-light: #cd6d85;
$custom-dark: #000000;
JSON
{
  "hex": "#af2256",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 337.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50134,
    "c": 0.1781,
    "h": 4.9
  },
  "luminance": 0.1093
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2256

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

Preview Lab → · Contrast checker → · Palette generator →

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