#AF256D#AF256D

#AF256D is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.183 H 354.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF256D
RGBrgb(175, 37, 109)
HSLhsl(329, 65%, 42%)
HSVhsv(329, 79%, 69%)
CMYKcmyk(0%, 78.9%, 37.7%, 31.4%)
CIE-LABlab(40.48, 59.31, -7.23)
CIE-LCHlch(40.48, 59.75, 353.05°)
OKLaboklab(51.11% 0.1823 -0.0184)
OKLCHoklch(51.11% 0.183 354.2)
XYZxyz(21.1025, 11.5439, 15.5820)
Luminance0.1154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256D #25AF67
analogous
#AC25AF #AF256D #AF2528
triadic
#AF256D #6DAF25 #256DAF
tetradic
#AF256D #AFAC25 #25AF67 #2528AF
square
#AF256D #AFAC25 #25AF67 #2528AF
split-complementary
#AF256D #28AF25 #25AFAC
monochromatic
#4A102E #7C1A4E #AF256D #D63C8C #E06EAA

Accessibility & contrast

On white

6.35
#AF256D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AF256D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF256D
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF256D#FFFFFF#000000##FFFFFF
##AF256D1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414F6F
Deuteranopia (green-blind)
#68686A
Tritanopia (blue-blind)
#BD1246
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af256d;
/* rgb */ color: rgb(175, 37, 109);
/* oklch */ color: oklch(51.1% 0.183 354.2);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af256d',
    950: '#000000',
  },
}
SCSS
$custom: #af256d;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af256d",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 328.696,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.1832,
    "h": 354.2
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#AF256D
secondary
#69C796
accent
#E89040
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF256D

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

Preview Lab → · Contrast checker → · Palette generator →

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