#AF276C#AF276C

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

Color values

HEX#AF276C
RGBrgb(175, 39, 108)
HSLhsl(330, 64%, 42%)
HSVhsv(330, 78%, 69%)
CMYKcmyk(0%, 77.7%, 38.3%, 31.4%)
CIE-LABlab(40.66, 58.61, -6.35)
CIE-LCHlch(40.66, 58.95, 353.82°)
OKLaboklab(51.23% 0.1801 -0.016)
OKLCHoklch(51.23% 0.181 354.9)
XYZxyz(21.1129, 11.6504, 15.3214)
Luminance0.1165 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276C #27AF6A
analogous
#AE27AF #AF276C #AF2728
triadic
#AF276C #6CAF27 #276CAF
tetradic
#AF276C #AFAE27 #27AF6A #2728AF
square
#AF276C #AFAE27 #27AF6A #2728AF
split-complementary
#AF276C #28AF27 #27AFAE
monochromatic
#4B112E #7D1C4D #AF276C #D43F8B #DF71A9

Accessibility & contrast

On white

6.31
#AF276C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF276C
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF276C#FFFFFF#000000##FFFFFF
##AF276C1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af276c;
/* rgb */ color: rgb(175, 39, 108);
/* oklch */ color: oklch(51.2% 0.181 354.9);
Tailwind
colors: {
  custom: {
    50: '#cc6f96',
    500: '#af276c',
    950: '#000000',
  },
}
SCSS
$custom: #af276c;
$custom-light: #cc6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#af276c",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 329.559,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51227,
    "c": 0.18082,
    "h": 354.9
  },
  "luminance": 0.11648
}

Semantic roles & 50–950 ramp

primary
#AF276C
secondary
#6BC698
accent
#E79341
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276C

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

Preview Lab → · Contrast checker → · Palette generator →

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