#AF256B#AF256B

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

Color values

HEX#AF256B
RGBrgb(175, 37, 107)
HSLhsl(330, 65%, 42%)
HSVhsv(330, 79%, 69%)
CMYKcmyk(0%, 78.9%, 38.9%, 31.4%)
CIE-LABlab(40.41, 59.10, -6.08)
CIE-LCHlch(40.41, 59.41, 354.13°)
OKLaboklab(51.04% 0.1817 -0.0153)
OKLCHoklch(51.04% 0.182 355.2)
XYZxyz(20.9961, 11.5013, 15.0214)
Luminance0.1150 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256B #25AF69
analogous
#AE25AF #AF256B #AF2526
triadic
#AF256B #6BAF25 #256BAF
tetradic
#AF256B #AFAE25 #25AF69 #2526AF
square
#AF256B #AFAE25 #25AF69 #2526AF
split-complementary
#AF256B #26AF25 #25AFAE
monochromatic
#4A102D #7C1A4C #AF256B #D63C8A #E06EA8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF256B#FFFFFF#000000##FFFFFF
##AF256B1.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)
#424F6D
Deuteranopia (green-blind)
#696868
Tritanopia (blue-blind)
#BD1045
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af256b;
/* rgb */ color: rgb(175, 37, 107);
/* oklch */ color: oklch(51.0% 0.182 355.2);
Tailwind
colors: {
  custom: {
    50: '#cc6f95',
    500: '#af256b',
    950: '#000000',
  },
}
SCSS
$custom: #af256b;
$custom-light: #cc6f95;
$custom-dark: #000000;
JSON
{
  "hex": "#af256b",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 329.565,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51038,
    "c": 0.18234,
    "h": 355.2
  },
  "luminance": 0.11499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF256B

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

Preview Lab → · Contrast checker → · Palette generator →

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