#AF266A#AF266A

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

Color values

HEX#AF266A
RGBrgb(175, 38, 106)
HSLhsl(330, 64%, 42%)
HSVhsv(330, 78%, 69%)
CMYKcmyk(0%, 78.3%, 39.4%, 31.4%)
CIE-LABlab(40.48, 58.70, -5.35)
CIE-LCHlch(40.48, 58.94, 354.79°)
OKLaboklab(51.08% 0.1805 -0.0133)
OKLCHoklch(51.08% 0.181 355.8)
XYZxyz(20.9753, 11.5435, 14.7564)
Luminance0.1154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF266A #26AF6B
analogous
#AF26AF #AF266A #AF2726
triadic
#AF266A #6AAF26 #266AAF
tetradic
#AF266A #AFAF26 #26AF6B #2726AF
square
#AF266A #AFAF26 #26AF6B #2726AF
split-complementary
#AF266A #26AF27 #26AFAF
monochromatic
#4A102D #7D1B4C #AF266A #D53D89 #E070A7

Accessibility & contrast

On white

6.35
#AF266A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF266A
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF266A#FFFFFF#000000##FFFFFF
##AF266A1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#434F6C
Deuteranopia (green-blind)
#696967
Tritanopia (blue-blind)
#BD1145
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af266a;
/* rgb */ color: rgb(175, 38, 106);
/* oklch */ color: oklch(51.1% 0.181 355.8);
Tailwind
colors: {
  custom: {
    50: '#cc6f94',
    500: '#af266a',
    950: '#000000',
  },
}
SCSS
$custom: #af266a;
$custom-light: #cc6f94;
$custom-dark: #000000;
JSON
{
  "hex": "#af266a",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 330.219,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51077,
    "c": 0.18096,
    "h": 355.8
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#AF266A
secondary
#6AC799
accent
#E79540
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF266A

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

Preview Lab → · Contrast checker → · Palette generator →

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