#AF276B#AF276B

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

Color values

HEX#AF276B
RGBrgb(175, 39, 107)
HSLhsl(330, 64%, 42%)
HSVhsv(330, 78%, 69%)
CMYKcmyk(0%, 77.7%, 38.9%, 31.4%)
CIE-LABlab(40.62, 58.50, -5.77)
CIE-LCHlch(40.62, 58.79, 354.37°)
OKLaboklab(51.19% 0.1798 -0.0145)
OKLCHoklch(51.19% 0.18 355.4)
XYZxyz(21.0600, 11.6292, 15.0427)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276B #27AF6B
analogous
#AF27AF #AF276B #AF2727
triadic
#AF276B #6BAF27 #276BAF
tetradic
#AF276B #AFAF27 #27AF6B #2727AF
square
#AF276B #AFAF27 #27AF6B #2727AF
split-complementary
#AF276B #27AF27 #27AFAF
monochromatic
#4B112E #7D1C4C #AF276B #D43F8A #DF71A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF276B#FFFFFF#000000##FFFFFF
##AF276B1.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43506D
Deuteranopia (green-blind)
#696968
Tritanopia (blue-blind)
#BD1446
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af276b;
/* rgb */ color: rgb(175, 39, 107);
/* oklch */ color: oklch(51.2% 0.180 355.4);
Tailwind
colors: {
  custom: {
    50: '#cc6f95',
    500: '#af276b',
    950: '#000000',
  },
}
SCSS
$custom: #af276b;
$custom-light: #cc6f95;
$custom-dark: #000000;
JSON
{
  "hex": "#af276b",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 330,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5119,
    "c": 0.18039,
    "h": 355.4
  },
  "luminance": 0.11627
}

Semantic roles & 50–950 ramp

primary
#AF276B
secondary
#6BC699
accent
#E79441
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276B

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

Preview Lab → · Contrast checker → · Palette generator →

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