#AF276D#AF276D

#AF276D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.181 H 354.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF276D
RGBrgb(175, 39, 109)
HSLhsl(329, 64%, 42%)
HSVhsv(329, 78%, 69%)
CMYKcmyk(0%, 77.7%, 37.7%, 31.4%)
CIE-LABlab(40.69, 58.72, -6.92)
CIE-LCHlch(40.69, 59.12, 353.28°)
OKLaboklab(51.26% 0.1804 -0.0175)
OKLCHoklch(51.26% 0.181 354.4)
XYZxyz(21.1664, 11.6718, 15.6033)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276D #27AF69
analogous
#AD27AF #AF276D #AF2729
triadic
#AF276D #6DAF27 #276DAF
tetradic
#AF276D #AFAD27 #27AF69 #2729AF
square
#AF276D #AFAD27 #27AF69 #2729AF
split-complementary
#AF276D #29AF27 #27AFAD
monochromatic
#4B112F #7D1C4E #AF276D #D43F8C #DF71AA

Accessibility & contrast

On white

6.30
#AF276D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF276D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF276D#FFFFFF#000000##FFFFFF
##AF276D1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43506F
Deuteranopia (green-blind)
#69696A
Tritanopia (blue-blind)
#BD1647
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af276d;
/* rgb */ color: rgb(175, 39, 109);
/* oklch */ color: oklch(51.3% 0.181 354.4);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af276d',
    950: '#000000',
  },
}
SCSS
$custom: #af276d;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af276d",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 329.118,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51263,
    "c": 0.18125,
    "h": 354.4
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#AF276D
secondary
#6BC698
accent
#E79141
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276D

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

Preview Lab → · Contrast checker → · Palette generator →

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