#AF4870#AF4870

#AF4870 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 54.9% C 0.140 H 358.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF4870
RGBrgb(175, 72, 112)
HSLhsl(337, 42%, 48%)
HSVhsv(337, 59%, 69%)
CMYKcmyk(0%, 58.9%, 36%, 31.4%)
CIE-LABlab(45.53, 46.03, -1.61)
CIE-LCHlch(45.53, 46.06, 357.99°)
OKLaboklab(54.87% 0.1403 -0.0036)
OKLCHoklch(54.87% 0.14 358.5)
XYZxyz(22.9224, 14.9210, 16.9989)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4870 #48AF87
analogous
#AF48A3 #AF4870 #AF5348
triadic
#AF4870 #70AF48 #4870AF
tetradic
#AF4870 #A3AF48 #48AF87 #5348AF
square
#AF4870 #A3AF48 #48AF87 #5348AF
split-complementary
#AF4870 #48AF53 #48A3AF
monochromatic
#582438 #843654 #AF4870 #C47091 #D69BB2

Accessibility & contrast

On white

5.27
#AF4870 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF4870 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4870
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4870#FFFFFF#000000##FFFFFF
##AF48701.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596071
Deuteranopia (green-blind)
#75736E
Tritanopia (blue-blind)
#BC4057
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af4870;
/* rgb */ color: rgb(175, 72, 112);
/* oklch */ color: oklch(54.9% 0.140 358.5);
Tailwind
colors: {
  custom: {
    50: '#ca8099',
    500: '#af4870',
    950: '#000000',
  },
}
SCSS
$custom: #af4870;
$custom-light: #ca8099;
$custom-dark: #000000;
JSON
{
  "hex": "#af4870",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 112
  },
  "hsl": {
    "h": 336.699,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54867,
    "c": 0.14038,
    "h": 358.5
  },
  "luminance": 0.14919
}

Semantic roles & 50–950 ramp

primary
#AF4870
secondary
#90C2AF
accent
#D2A256
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140A0D
muted
#827C7E

Preview Lab

Preview with #AF4870

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

Preview Lab → · Contrast checker → · Palette generator →

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