#AF2874#AF2874

#AF2874 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.183 H 351.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF2874
RGBrgb(175, 40, 116)
HSLhsl(326, 63%, 42%)
HSVhsv(326, 77%, 69%)
CMYKcmyk(0%, 77.1%, 33.7%, 31.4%)
CIE-LABlab(41.05, 59.18, -10.75)
CIE-LCHlch(41.05, 60.15, 349.71°)
OKLaboklab(51.61% 0.1814 -0.0279)
OKLCHoklch(51.61% 0.183 351.3)
XYZxyz(21.5916, 11.8951, 17.6786)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2874 #28AF63
analogous
#A728AF #AF2874 #AF2831
triadic
#AF2874 #74AF28 #2874AF
tetradic
#AF2874 #AFA728 #28AF63 #2831AF
square
#AF2874 #AFA728 #28AF63 #2831AF
split-complementary
#AF2874 #31AF28 #28AFA7
monochromatic
#4B1132 #7D1D53 #AF2874 #D44193 #DF73B0

Accessibility & contrast

On white

6.22
#AF2874 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF2874 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2874
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2874#FFFFFF#000000##FFFFFF
##AF28741.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2874;
/* rgb */ color: rgb(175, 40, 116);
/* oklch */ color: oklch(51.6% 0.183 351.3);
Tailwind
colors: {
  custom: {
    50: '#cc709c',
    500: '#af2874',
    950: '#000000',
  },
}
SCSS
$custom: #af2874;
$custom-light: #cc709c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2874",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 326.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51608,
    "c": 0.18348,
    "h": 351.3
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#AF2874
secondary
#6DC694
accent
#E68A42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2874

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

Preview Lab → · Contrast checker → · Palette generator →

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