#AF277D#AF277D

#AF277D is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.189 H 347.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF277D
RGBrgb(175, 39, 125)
HSLhsl(322, 64%, 42%)
HSVhsv(322, 78%, 69%)
CMYKcmyk(0%, 77.7%, 28.6%, 31.4%)
CIE-LABlab(41.29, 60.54, -15.96)
CIE-LCHlch(41.29, 62.61, 345.23°)
OKLaboklab(51.9% 0.1844 -0.0422)
OKLCHoklch(51.9% 0.189 347.1)
XYZxyz(22.1075, 12.0482, 20.5594)
Luminance0.1205 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF277D #27AF59
analogous
#9D27AF #AF277D #AF2739
triadic
#AF277D #7DAF27 #277DAF
tetradic
#AF277D #AF9D27 #27AF59 #2739AF
square
#AF277D #AF9D27 #27AF59 #2739AF
split-complementary
#AF277D #39AF27 #27AF9D
monochromatic
#4B1136 #7D1C59 #AF277D #D43F9D #DF71B7

Accessibility & contrast

On white

6.16
#AF277D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF277D
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF277D#FFFFFF#000000##FFFFFF
##AF277D1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527F
Deuteranopia (green-blind)
#646A7A
Tritanopia (blue-blind)
#BC214F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af277d;
/* rgb */ color: rgb(175, 39, 125);
/* oklch */ color: oklch(51.9% 0.189 347.1);
Tailwind
colors: {
  custom: {
    50: '#cb70a2',
    500: '#af277d',
    950: '#000000',
  },
}
SCSS
$custom: #af277d;
$custom-light: #cb70a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af277d",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 322.059,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.519,
    "c": 0.18918,
    "h": 347.1
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#AF277D
secondary
#6BC68D
accent
#E77E41
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF277D

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

Preview Lab → · Contrast checker → · Palette generator →

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