#AF255C#AF255C

#AF255C is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.177 H 2.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF255C
RGBrgb(175, 37, 92)
HSLhsl(336, 65%, 42%)
HSVhsv(336, 79%, 69%)
CMYKcmyk(0%, 78.9%, 47.4%, 31.4%)
CIE-LABlab(39.94, 57.64, 2.68)
CIE-LCHlch(39.94, 57.71, 2.66°)
OKLaboklab(50.53% 0.1768 0.0075)
OKLCHoklch(50.53% 0.177 2.4)
XYZxyz(20.2742, 11.2126, 11.2198)
Luminance0.1121 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF255C #25AF78
analogous
#AF25A1 #AF255C #AF3325
triadic
#AF255C #5CAF25 #255CAF
tetradic
#AF255C #A1AF25 #25AF78 #3325AF
square
#AF255C #A1AF25 #25AF78 #3325AF
split-complementary
#AF255C #25AF33 #25A1AF
monochromatic
#4A1027 #7C1A41 #AF255C #D63C79 #E06E9C

Accessibility & contrast

On white

6.48
#AF255C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#AF255C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF255C
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF255C#FFFFFF#000000##FFFFFF
##AF255C1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474D5D
Deuteranopia (green-blind)
#6C6859
Tritanopia (blue-blind)
#BE003D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af255c;
/* rgb */ color: rgb(175, 37, 92);
/* oklch */ color: oklch(50.5% 0.177 2.4);
Tailwind
colors: {
  custom: {
    50: '#cd6e89',
    500: '#af255c',
    950: '#000000',
  },
}
SCSS
$custom: #af255c;
$custom-light: #cd6e89;
$custom-dark: #000000;
JSON
{
  "hex": "#af255c",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 336.087,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50534,
    "c": 0.177,
    "h": 2.4
  },
  "luminance": 0.1121
}

Semantic roles & 50–950 ramp

primary
#AF255C
secondary
#69C7A1
accent
#E8A540
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF255C

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

Preview Lab → · Contrast checker → · Palette generator →

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