#AF256A#AF256A

#AF256A is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.182 H 355.7°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF256A
RGBrgb(175, 37, 106)
HSLhsl(330, 65%, 42%)
HSVhsv(330, 79%, 69%)
CMYKcmyk(0%, 78.9%, 39.4%, 31.4%)
CIE-LABlab(40.38, 58.99, -5.50)
CIE-LCHlch(40.38, 59.25, 354.67°)
OKLaboklab(51% 0.1814 -0.0137)
OKLCHoklch(51% 0.182 355.7)
XYZxyz(20.9438, 11.4804, 14.7459)
Luminance0.1148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256A #25AF6A
analogous
#AF25AF #AF256A #AF2525
triadic
#AF256A #6AAF25 #256AAF
tetradic
#AF256A #AFAF25 #25AF6A #2525AF
square
#AF256A #AFAF25 #25AF6A #2525AF
split-complementary
#AF256A #25AF25 #25AFAF
monochromatic
#4A102D #7C1A4B #AF256A #D63C89 #E06EA7

Accessibility & contrast

On white

6.37
#AF256A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AF256A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF256A
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF256A#FFFFFF#000000##FFFFFF
##AF256A1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424F6C
Deuteranopia (green-blind)
#696867
Tritanopia (blue-blind)
#BD0F44
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af256a;
/* rgb */ color: rgb(175, 37, 106);
/* oklch */ color: oklch(51.0% 0.182 355.7);
Tailwind
colors: {
  custom: {
    50: '#cc6e94',
    500: '#af256a',
    950: '#000000',
  },
}
SCSS
$custom: #af256a;
$custom-light: #cc6e94;
$custom-dark: #000000;
JSON
{
  "hex": "#af256a",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 330,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51002,
    "c": 0.18192,
    "h": 355.7
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#AF256A
secondary
#69C798
accent
#E89440
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF256A

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

Preview Lab → · Contrast checker → · Palette generator →

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