#AF255D#AF255D

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

Color values

HEX#AF255D
RGBrgb(175, 37, 93)
HSLhsl(336, 65%, 42%)
HSVhsv(336, 79%, 69%)
CMYKcmyk(0%, 78.9%, 46.9%, 31.4%)
CIE-LABlab(39.97, 57.73, 2.09)
CIE-LCHlch(39.97, 57.77, 2.07°)
OKLaboklab(50.57% 0.1772 0.006)
OKLCHoklch(50.57% 0.177 1.9)
XYZxyz(20.3182, 11.2302, 11.4515)
Luminance0.1123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF255D #25AF77
analogous
#AF25A2 #AF255D #AF3225
triadic
#AF255D #5DAF25 #255DAF
tetradic
#AF255D #A2AF25 #25AF77 #3225AF
square
#AF255D #A2AF25 #25AF77 #3225AF
split-complementary
#AF255D #25AF32 #25A2AF
monochromatic
#4A1027 #7C1A42 #AF255D #D63C7A #E06E9C

Accessibility & contrast

On white

6.47
#AF255D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#AF255D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF255D
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF255D#FFFFFF#000000##FFFFFF
##AF255D1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474D5E
Deuteranopia (green-blind)
#6B685A
Tritanopia (blue-blind)
#BE003E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af255d;
/* rgb */ color: rgb(175, 37, 93);
/* oklch */ color: oklch(50.6% 0.177 1.9);
Tailwind
colors: {
  custom: {
    50: '#cd6e8a',
    500: '#af255d',
    950: '#000000',
  },
}
SCSS
$custom: #af255d;
$custom-light: #cd6e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#af255d",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 335.652,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50565,
    "c": 0.17729,
    "h": 1.9
  },
  "luminance": 0.11227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF255D

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

Preview Lab → · Contrast checker → · Palette generator →

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