#AF256C#AF256C

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

Color values

HEX#AF256C
RGBrgb(175, 37, 108)
HSLhsl(329, 65%, 42%)
HSVhsv(329, 79%, 69%)
CMYKcmyk(0%, 78.9%, 38.3%, 31.4%)
CIE-LABlab(40.45, 59.20, -6.66)
CIE-LCHlch(40.45, 59.57, 353.59°)
OKLaboklab(51.08% 0.182 -0.0168)
OKLCHoklch(51.08% 0.183 354.7)
XYZxyz(21.0490, 11.5225, 15.3001)
Luminance0.1152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256C #25AF68
analogous
#AD25AF #AF256C #AF2527
triadic
#AF256C #6CAF25 #256CAF
tetradic
#AF256C #AFAD25 #25AF68 #2527AF
square
#AF256C #AFAD25 #25AF68 #2527AF
split-complementary
#AF256C #27AF25 #25AFAD
monochromatic
#4A102E #7C1A4D #AF256C #D63C8B #E06EA9

Accessibility & contrast

On white

6.36
#AF256C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF256C
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF256C#FFFFFF#000000##FFFFFF
##AF256C1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424F6E
Deuteranopia (green-blind)
#686869
Tritanopia (blue-blind)
#BD1146
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af256c;
/* rgb */ color: rgb(175, 37, 108);
/* oklch */ color: oklch(51.1% 0.183 354.7);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af256c',
    950: '#000000',
  },
}
SCSS
$custom: #af256c;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af256c",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 329.13,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51075,
    "c": 0.18277,
    "h": 354.7
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#AF256C
secondary
#69C797
accent
#E89140
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF256C

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

Preview Lab → · Contrast checker → · Palette generator →

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