#AF2857#AF2857

#AF2857 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.6% C 0.173 H 5.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2857
RGBrgb(175, 40, 87)
HSLhsl(339, 63%, 42%)
HSVhsv(339, 77%, 69%)
CMYKcmyk(0%, 77.1%, 50.3%, 31.4%)
CIE-LABlab(40.12, 56.30, 6.10)
CIE-LCHlch(40.12, 56.63, 6.19°)
OKLaboklab(50.62% 0.1721 0.0161)
OKLCHoklch(50.62% 0.173 5.3)
XYZxyz(20.1601, 11.3224, 10.1388)
Luminance0.1132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2857 #28AF80
analogous
#AF289B #AF2857 #AF3C28
triadic
#AF2857 #57AF28 #2857AF
tetradic
#AF2857 #9BAF28 #28AF80 #3C28AF
square
#AF2857 #9BAF28 #28AF80 #3C28AF
split-complementary
#AF2857 #28AF3C #289BAF
monochromatic
#4B1125 #7D1D3E #AF2857 #D44174 #DF7398

Accessibility & contrast

On white

6.43
#AF2857 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AF2857 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2857
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2857#FFFFFF#000000##FFFFFF
##AF28571.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4E58
Deuteranopia (green-blind)
#6D6854
Tritanopia (blue-blind)
#BF013C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2857;
/* rgb */ color: rgb(175, 40, 87);
/* oklch */ color: oklch(50.6% 0.173 5.3);
Tailwind
colors: {
  custom: {
    50: '#cd6f86',
    500: '#af2857',
    950: '#000000',
  },
}
SCSS
$custom: #af2857;
$custom-light: #cd6f86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2857",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 339.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50622,
    "c": 0.17286,
    "h": 5.3
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

primary
#AF2857
secondary
#6DC6A7
accent
#E6AD42
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2857

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

Preview Lab → · Contrast checker → · Palette generator →

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