#AF276F#AF276F

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

Color values

HEX#AF276F
RGBrgb(175, 39, 111)
HSLhsl(328, 64%, 42%)
HSVhsv(328, 78%, 69%)
CMYKcmyk(0%, 77.7%, 36.6%, 31.4%)
CIE-LABlab(40.76, 58.93, -8.07)
CIE-LCHlch(40.76, 59.48, 352.21°)
OKLaboklab(51.34% 0.181 -0.0206)
OKLCHoklch(51.34% 0.182 353.5)
XYZxyz(21.2753, 11.7153, 16.1768)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276F #27AF67
analogous
#AB27AF #AF276F #AF272B
triadic
#AF276F #6FAF27 #276FAF
tetradic
#AF276F #AFAB27 #27AF67 #272BAF
square
#AF276F #AFAB27 #27AF67 #272BAF
split-complementary
#AF276F #2BAF27 #27AFAB
monochromatic
#4B1130 #7D1C4F #AF276F #D43F8E #DF71AB

Accessibility & contrast

On white

6.28
#AF276F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF276F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF276F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF276F#FFFFFF#000000##FFFFFF
##AF276F1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425071
Deuteranopia (green-blind)
#68696C
Tritanopia (blue-blind)
#BD1748
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af276f;
/* rgb */ color: rgb(175, 39, 111);
/* oklch */ color: oklch(51.3% 0.182 353.5);
Tailwind
colors: {
  custom: {
    50: '#cc6f98',
    500: '#af276f',
    950: '#000000',
  },
}
SCSS
$custom: #af276f;
$custom-light: #cc6f98;
$custom-dark: #000000;
JSON
{
  "hex": "#af276f",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 328.235,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51338,
    "c": 0.18214,
    "h": 353.5
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#AF276F
secondary
#6BC696
accent
#E78F41
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276F

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

Preview Lab → · Contrast checker → · Palette generator →

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