#AF266E#AF266E

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

Color values

HEX#AF266E
RGBrgb(175, 38, 110)
HSLhsl(328, 64%, 42%)
HSVhsv(328, 78%, 69%)
CMYKcmyk(0%, 78.3%, 37.1%, 31.4%)
CIE-LABlab(40.62, 59.12, -7.65)
CIE-LCHlch(40.62, 59.61, 352.63°)
OKLaboklab(51.22% 0.1816 -0.0195)
OKLCHoklch(51.22% 0.183 353.9)
XYZxyz(21.1882, 11.6286, 15.8776)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF266E #26AF67
analogous
#AC26AF #AF266E #AF262A
triadic
#AF266E #6EAF26 #266EAF
tetradic
#AF266E #AFAC26 #26AF67 #262AAF
square
#AF266E #AFAC26 #26AF67 #262AAF
split-complementary
#AF266E #2AAF26 #26AFAC
monochromatic
#4A102F #7D1B4E #AF266E #D53D8D #E070AB

Accessibility & contrast

On white

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

On black

3.33
#AF266E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF266E#FFFFFF#000000##FFFFFF
##AF266E1.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425070
Deuteranopia (green-blind)
#68696B
Tritanopia (blue-blind)
#BD1547
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af266e;
/* rgb */ color: rgb(175, 38, 110);
/* oklch */ color: oklch(51.2% 0.183 353.9);
Tailwind
colors: {
  custom: {
    50: '#cc6f97',
    500: '#af266e',
    950: '#000000',
  },
}
SCSS
$custom: #af266e;
$custom-light: #cc6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#af266e",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 328.467,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51224,
    "c": 0.18267,
    "h": 353.9
  },
  "luminance": 0.11626
}

Semantic roles & 50–950 ramp

primary
#AF266E
secondary
#6AC796
accent
#E79040
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF266E

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

Preview Lab → · Contrast checker → · Palette generator →

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