#AF276A#AF276A

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

Color values

HEX#AF276A
RGBrgb(175, 39, 106)
HSLhsl(330, 64%, 42%)
HSVhsv(330, 78%, 69%)
CMYKcmyk(0%, 77.7%, 39.4%, 31.4%)
CIE-LABlab(40.59, 58.40, -5.19)
CIE-LCHlch(40.59, 58.63, 354.92°)
OKLaboklab(51.15% 0.1795 -0.0129)
OKLCHoklch(51.15% 0.18 355.9)
XYZxyz(21.0077, 11.6083, 14.7672)
Luminance0.1161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276A #27AF6C
analogous
#AF27AE #AF276A #AF2827
triadic
#AF276A #6AAF27 #276AAF
tetradic
#AF276A #AEAF27 #27AF6C #2827AF
square
#AF276A #AEAF27 #27AF6C #2827AF
split-complementary
#AF276A #27AF28 #27AEAF
monochromatic
#4B112D #7D1C4C #AF276A #D43F89 #DF71A7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF276A#FFFFFF#000000##FFFFFF
##AF276A1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44506C
Deuteranopia (green-blind)
#696967
Tritanopia (blue-blind)
#BD1345
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af276a;
/* rgb */ color: rgb(175, 39, 106);
/* oklch */ color: oklch(51.2% 0.180 355.9);
Tailwind
colors: {
  custom: {
    50: '#cc6f94',
    500: '#af276a',
    950: '#000000',
  },
}
SCSS
$custom: #af276a;
$custom-light: #cc6f94;
$custom-dark: #000000;
JSON
{
  "hex": "#af276a",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 330.441,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.17998,
    "h": 355.9
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#AF276A
secondary
#6BC69A
accent
#E79541
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276A

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

Preview Lab → · Contrast checker → · Palette generator →

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