#AF256F#AF256F

#AF256F is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.2% C 0.184 H 353.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF256F
RGBrgb(175, 37, 111)
HSLhsl(328, 65%, 42%)
HSVhsv(328, 79%, 69%)
CMYKcmyk(0%, 78.9%, 36.6%, 31.4%)
CIE-LABlab(40.55, 59.52, -8.38)
CIE-LCHlch(40.55, 60.11, 351.99°)
OKLaboklab(51.19% 0.1828 -0.0214)
OKLCHoklch(51.19% 0.184 353.3)
XYZxyz(21.2114, 11.5874, 16.1554)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256F #25AF65
analogous
#AA25AF #AF256F #AF252A
triadic
#AF256F #6FAF25 #256FAF
tetradic
#AF256F #AFAA25 #25AF65 #252AAF
square
#AF256F #AFAA25 #25AF65 #252AAF
split-complementary
#AF256F #2AAF25 #25AFAA
monochromatic
#4A102F #7C1A4F #AF256F #D63C8E #E06EAB

Accessibility & contrast

On white

6.33
#AF256F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AF256F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF256F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF256F#FFFFFF#000000##FFFFFF
##AF256F1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415071
Deuteranopia (green-blind)
#68696C
Tritanopia (blue-blind)
#BD1447
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af256f;
/* rgb */ color: rgb(175, 37, 111);
/* oklch */ color: oklch(51.2% 0.184 353.3);
Tailwind
colors: {
  custom: {
    50: '#cc6f98',
    500: '#af256f',
    950: '#000000',
  },
}
SCSS
$custom: #af256f;
$custom-light: #cc6f98;
$custom-dark: #000000;
JSON
{
  "hex": "#af256f",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 327.826,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51187,
    "c": 0.18409,
    "h": 353.3
  },
  "luminance": 0.11585
}

Semantic roles & 50–950 ramp

primary
#AF256F
secondary
#69C794
accent
#E88E40
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF256F

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

Preview Lab → · Contrast checker → · Palette generator →

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