#AF2774#AF2774

#AF2774 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.184 H 351.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF2774
RGBrgb(175, 39, 116)
HSLhsl(326, 64%, 42%)
HSVhsv(326, 78%, 69%)
CMYKcmyk(0%, 77.7%, 33.7%, 31.4%)
CIE-LABlab(40.94, 59.49, -10.91)
CIE-LCHlch(40.94, 60.48, 349.61°)
OKLaboklab(51.53% 0.1823 -0.0283)
OKLCHoklch(51.53% 0.184 351.2)
XYZxyz(21.5584, 11.8285, 17.6675)
Luminance0.1183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2774 #27AF62
analogous
#A627AF #AF2774 #AF2730
triadic
#AF2774 #74AF27 #2774AF
tetradic
#AF2774 #AFA627 #27AF62 #2730AF
square
#AF2774 #AFA627 #27AF62 #2730AF
split-complementary
#AF2774 #30AF27 #27AFA6
monochromatic
#4B1132 #7D1C53 #AF2774 #D43F93 #DF71B0

Accessibility & contrast

On white

6.24
#AF2774 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2774 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2774
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2774#FFFFFF#000000##FFFFFF
##AF27741.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405176
Deuteranopia (green-blind)
#676971
Tritanopia (blue-blind)
#BC1B4A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2774;
/* rgb */ color: rgb(175, 39, 116);
/* oklch */ color: oklch(51.5% 0.184 351.2);
Tailwind
colors: {
  custom: {
    50: '#cc709c',
    500: '#af2774',
    950: '#000000',
  },
}
SCSS
$custom: #af2774;
$custom-light: #cc709c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2774",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 326.029,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51531,
    "c": 0.18448,
    "h": 351.2
  },
  "luminance": 0.11826
}

Semantic roles & 50–950 ramp

primary
#AF2774
secondary
#6BC693
accent
#E78941
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2774

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

Preview Lab → · Contrast checker → · Palette generator →

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