#AF256E#AF256E

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

Color values

HEX#AF256E
RGBrgb(175, 37, 110)
HSLhsl(328, 65%, 42%)
HSVhsv(328, 79%, 69%)
CMYKcmyk(0%, 78.9%, 37.1%, 31.4%)
CIE-LABlab(40.52, 59.41, -7.80)
CIE-LCHlch(40.52, 59.92, 352.52°)
OKLaboklab(51.15% 0.1826 -0.0199)
OKLCHoklch(51.15% 0.184 353.8)
XYZxyz(21.1566, 11.5655, 15.8671)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF256E #25AF66
analogous
#AB25AF #AF256E #AF2529
triadic
#AF256E #6EAF25 #256EAF
tetradic
#AF256E #AFAB25 #25AF66 #2529AF
square
#AF256E #AFAB25 #25AF66 #2529AF
split-complementary
#AF256E #29AF25 #25AFAB
monochromatic
#4A102E #7C1A4E #AF256E #D63C8D #E06EAB

Accessibility & contrast

On white

6.34
#AF256E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF256E
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF256E#FFFFFF#000000##FFFFFF
##AF256E1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414F70
Deuteranopia (green-blind)
#68696B
Tritanopia (blue-blind)
#BD1347
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af256e;
/* rgb */ color: rgb(175, 37, 110);
/* oklch */ color: oklch(51.1% 0.184 353.8);
Tailwind
colors: {
  custom: {
    50: '#cc6f97',
    500: '#af256e',
    950: '#000000',
  },
}
SCSS
$custom: #af256e;
$custom-light: #cc6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#af256e",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 328.261,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51149,
    "c": 0.18364,
    "h": 353.8
  },
  "luminance": 0.11563
}

Semantic roles & 50–950 ramp

primary
#AF256E
secondary
#69C795
accent
#E88F40
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF256E

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

Preview Lab → · Contrast checker → · Palette generator →

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