#AF277E#AF277E

#AF277E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.190 H 346.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AF277E
RGBrgb(175, 39, 126)
HSLhsl(322, 64%, 42%)
HSVhsv(322, 78%, 69%)
CMYKcmyk(0%, 77.7%, 28%, 31.4%)
CIE-LABlab(41.33, 60.67, -16.51)
CIE-LCHlch(41.33, 62.87, 344.77°)
OKLaboklab(51.94% 0.1846 -0.0437)
OKLCHoklch(51.94% 0.19 346.7)
XYZxyz(22.1717, 12.0739, 20.8975)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF277E #27AF58
analogous
#9C27AF #AF277E #AF273A
triadic
#AF277E #7EAF27 #277EAF
tetradic
#AF277E #AF9C27 #27AF58 #273AAF
square
#AF277E #AF9C27 #27AF58 #273AAF
split-complementary
#AF277E #3AAF27 #27AF9C
monochromatic
#4B1136 #7D1C5A #AF277E #D43F9E #DF71B8

Accessibility & contrast

On white

6.15
#AF277E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF277E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF277E
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF277E#FFFFFF#000000##FFFFFF
##AF277E1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5380
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#BB2250
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af277e;
/* rgb */ color: rgb(175, 39, 126);
/* oklch */ color: oklch(51.9% 0.190 346.7);
Tailwind
colors: {
  custom: {
    50: '#cb70a3',
    500: '#af277e',
    950: '#000000',
  },
}
SCSS
$custom: #af277e;
$custom-light: #cb70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af277e",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 321.618,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.18973,
    "h": 346.7
  },
  "luminance": 0.12071
}

Semantic roles & 50–950 ramp

primary
#AF277E
secondary
#6BC68C
accent
#E77D41
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF277E

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

Preview Lab → · Contrast checker → · Palette generator →

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