#AF266C#AF266C

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

Color values

HEX#AF266C
RGBrgb(175, 38, 108)
HSLhsl(329, 64%, 42%)
HSVhsv(329, 78%, 69%)
CMYKcmyk(0%, 78.3%, 38.3%, 31.4%)
CIE-LABlab(40.55, 58.91, -6.50)
CIE-LCHlch(40.55, 59.27, 353.70°)
OKLaboklab(51.15% 0.1811 -0.0164)
OKLCHoklch(51.15% 0.182 354.8)
XYZxyz(21.0805, 11.5856, 15.3106)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF266C #26AF69
analogous
#AE26AF #AF266C #AF2628
triadic
#AF266C #6CAF26 #266CAF
tetradic
#AF266C #AFAE26 #26AF69 #2628AF
square
#AF266C #AFAE26 #26AF69 #2628AF
split-complementary
#AF266C #28AF26 #26AFAE
monochromatic
#4A102E #7D1B4D #AF266C #D53D8B #E070A9

Accessibility & contrast

On white

6.33
#AF266C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF266C
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF266C#FFFFFF#000000##FFFFFF
##AF266C1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42506E
Deuteranopia (green-blind)
#696969
Tritanopia (blue-blind)
#BD1346
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af266c;
/* rgb */ color: rgb(175, 38, 108);
/* oklch */ color: oklch(51.1% 0.182 354.8);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af266c',
    950: '#000000',
  },
}
SCSS
$custom: #af266c;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af266c",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 329.343,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5115,
    "c": 0.1818,
    "h": 354.8
  },
  "luminance": 0.11583
}

Semantic roles & 50–950 ramp

primary
#AF266C
secondary
#6AC797
accent
#E79240
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF266C

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

Preview Lab → · Contrast checker → · Palette generator →

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