#AF266D#AF266D

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

Color values

HEX#AF266D
RGBrgb(175, 38, 109)
HSLhsl(329, 64%, 42%)
HSVhsv(329, 78%, 69%)
CMYKcmyk(0%, 78.3%, 37.7%, 31.4%)
CIE-LABlab(40.58, 59.01, -7.08)
CIE-LCHlch(40.58, 59.44, 353.16°)
OKLaboklab(51.19% 0.1814 -0.0179)
OKLCHoklch(51.19% 0.182 354.3)
XYZxyz(21.1340, 11.6070, 15.5925)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF266D #26AF68
analogous
#AD26AF #AF266D #AF2629
triadic
#AF266D #6DAF26 #266DAF
tetradic
#AF266D #AFAD26 #26AF68 #2629AF
square
#AF266D #AFAD26 #26AF68 #2629AF
split-complementary
#AF266D #29AF26 #26AFAD
monochromatic
#4A102E #7D1B4E #AF266D #D53D8C #E070AA

Accessibility & contrast

On white

6.32
#AF266D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF266D
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF266D#FFFFFF#000000##FFFFFF
##AF266D1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42506F
Deuteranopia (green-blind)
#68696A
Tritanopia (blue-blind)
#BD1446
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af266d;
/* rgb */ color: rgb(175, 38, 109);
/* oklch */ color: oklch(51.2% 0.182 354.3);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af266d',
    950: '#000000',
  },
}
SCSS
$custom: #af266d;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af266d",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 328.905,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51187,
    "c": 0.18224,
    "h": 354.3
  },
  "luminance": 0.11604
}

Semantic roles & 50–950 ramp

primary
#AF266D
secondary
#6AC797
accent
#E79140
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF266D

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

Preview Lab → · Contrast checker → · Palette generator →

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