#AF266B#AF266B

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

Color values

HEX#AF266B
RGBrgb(175, 38, 107)
HSLhsl(330, 64%, 42%)
HSVhsv(330, 78%, 69%)
CMYKcmyk(0%, 78.3%, 38.9%, 31.4%)
CIE-LABlab(40.52, 58.80, -5.93)
CIE-LCHlch(40.52, 59.10, 354.24°)
OKLaboklab(51.11% 0.1808 -0.0149)
OKLCHoklch(51.11% 0.181 355.3)
XYZxyz(21.0276, 11.5644, 15.0319)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF266B #26AF6A
analogous
#AF26AF #AF266B #AF2627
triadic
#AF266B #6BAF26 #266BAF
tetradic
#AF266B #AFAF26 #26AF6A #2627AF
square
#AF266B #AFAF26 #26AF6A #2627AF
split-complementary
#AF266B #27AF26 #26AFAF
monochromatic
#4A102E #7D1B4C #AF266B #D53D8A #E070A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF266B#FFFFFF#000000##FFFFFF
##AF266B1.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)
#434F6D
Deuteranopia (green-blind)
#696968
Tritanopia (blue-blind)
#BD1245
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af266b;
/* rgb */ color: rgb(175, 38, 107);
/* oklch */ color: oklch(51.1% 0.181 355.3);
Tailwind
colors: {
  custom: {
    50: '#cc6f95',
    500: '#af266b',
    950: '#000000',
  },
}
SCSS
$custom: #af266b;
$custom-light: #cc6f95;
$custom-dark: #000000;
JSON
{
  "hex": "#af266b",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 329.781,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.18138,
    "h": 355.3
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#AF266B
secondary
#6AC798
accent
#E79340
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF266B

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

Preview Lab → · Contrast checker → · Palette generator →

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