#AF277F#AF277F

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

Color values

HEX#AF277F
RGBrgb(175, 39, 127)
HSLhsl(321, 64%, 42%)
HSVhsv(321, 78%, 69%)
CMYKcmyk(0%, 77.7%, 27.4%, 31.4%)
CIE-LABlab(41.37, 60.79, -17.07)
CIE-LCHlch(41.37, 63.14, 344.32°)
OKLaboklab(51.99% 0.1848 -0.0452)
OKLCHoklch(51.99% 0.19 346.2)
XYZxyz(22.2365, 12.0998, 21.2390)
Luminance0.1210 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF277F #27AF57
analogous
#9B27AF #AF277F #AF273B
triadic
#AF277F #7FAF27 #277FAF
tetradic
#AF277F #AF9B27 #27AF57 #273BAF
square
#AF277F #AF9B27 #27AF57 #273BAF
split-complementary
#AF277F #3BAF27 #27AF9B
monochromatic
#4B1136 #7D1C5B #AF277F #D43FA0 #DF71B8

Accessibility & contrast

On white

6.14
#AF277F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AF277F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF277F
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF277F#FFFFFF#000000##FFFFFF
##AF277F1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5381
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#BB2350
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af277f;
/* rgb */ color: rgb(175, 39, 127);
/* oklch */ color: oklch(52.0% 0.190 346.2);
Tailwind
colors: {
  custom: {
    50: '#cb70a4',
    500: '#af277f',
    950: '#000000',
  },
}
SCSS
$custom: #af277f;
$custom-light: #cb70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af277f",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 321.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51986,
    "c": 0.19029,
    "h": 346.2
  },
  "luminance": 0.12097
}

Semantic roles & 50–950 ramp

primary
#AF277F
secondary
#6BC68C
accent
#E77C41
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF277F

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

Preview Lab → · Contrast checker → · Palette generator →

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