#AF2870#AF2870

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

Color values

HEX#AF2870
RGBrgb(175, 40, 112)
HSLhsl(328, 63%, 42%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 77.1%, 36%, 31.4%)
CIE-LABlab(40.90, 58.74, -8.48)
CIE-LCHlch(40.90, 59.34, 351.79°)
OKLaboklab(51.45% 0.1803 -0.0217)
OKLCHoklch(51.45% 0.182 353.1)
XYZxyz(21.3640, 11.8040, 16.4795)
Luminance0.1180 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2870 #28AF67
analogous
#AB28AF #AF2870 #AF282C
triadic
#AF2870 #70AF28 #2870AF
tetradic
#AF2870 #AFAB28 #28AF67 #282CAF
square
#AF2870 #AFAB28 #28AF67 #282CAF
split-complementary
#AF2870 #2CAF28 #28AFAB
monochromatic
#4B1130 #7D1D50 #AF2870 #D4418F #DF73AC

Accessibility & contrast

On white

6.25
#AF2870 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF2870 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2870
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2870#FFFFFF#000000##FFFFFF
##AF28701.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425172
Deuteranopia (green-blind)
#68696D
Tritanopia (blue-blind)
#BD1A49
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2870;
/* rgb */ color: rgb(175, 40, 112);
/* oklch */ color: oklch(51.5% 0.182 353.1);
Tailwind
colors: {
  custom: {
    50: '#cc7099',
    500: '#af2870',
    950: '#000000',
  },
}
SCSS
$custom: #af2870;
$custom-light: #cc7099;
$custom-dark: #000000;
JSON
{
  "hex": "#af2870",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 328,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51454,
    "c": 0.18158,
    "h": 353.1
  },
  "luminance": 0.11801
}

Semantic roles & 50–950 ramp

primary
#AF2870
secondary
#6DC696
accent
#E68E42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2870

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

Preview Lab → · Contrast checker → · Palette generator →

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