#AF2851#AF2851

#AF2851 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.172 H 8.3°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#AF2851
RGBrgb(175, 40, 81)
HSLhsl(342, 63%, 42%)
HSVhsv(342, 77%, 69%)
CMYKcmyk(0%, 77.1%, 53.7%, 31.4%)
CIE-LABlab(39.96, 55.81, 9.69)
CIE-LCHlch(39.96, 56.64, 9.85°)
OKLaboklab(50.46% 0.1698 0.0248)
OKLCHoklch(50.46% 0.172 8.3)
XYZxyz(19.9250, 11.2284, 8.9011)
Luminance0.1123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2851 #28AF86
analogous
#AF2895 #AF2851 #AF4328
triadic
#AF2851 #51AF28 #2851AF
tetradic
#AF2851 #95AF28 #28AF86 #4328AF
square
#AF2851 #95AF28 #28AF86 #4328AF
split-complementary
#AF2851 #28AF43 #2895AF
monochromatic
#4B1123 #7D1D3A #AF2851 #D4416D #DF7393

Accessibility & contrast

On white

6.47
#AF2851 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#AF2851 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2851
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2851#FFFFFF#000000##FFFFFF
##AF28511.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4D52
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2851;
/* rgb */ color: rgb(175, 40, 81);
/* oklch */ color: oklch(50.5% 0.172 8.3);
Tailwind
colors: {
  custom: {
    50: '#cd6f81',
    500: '#af2851',
    950: '#000000',
  },
}
SCSS
$custom: #af2851;
$custom-light: #cd6f81;
$custom-dark: #000000;
JSON
{
  "hex": "#af2851",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 81
  },
  "hsl": {
    "h": 341.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50456,
    "c": 0.17164,
    "h": 8.3
  },
  "luminance": 0.11226
}

Semantic roles & 50–950 ramp

primary
#AF2851
secondary
#6DC6AB
accent
#E6B442
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2851

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

Preview Lab → · Contrast checker → · Palette generator →

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