#AF4087#AF4087

#AF4087 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.7% C 0.164 H 344.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF4087
RGBrgb(175, 64, 135)
HSLhsl(322, 46%, 47%)
HSVhsv(322, 63%, 69%)
CMYKcmyk(0%, 63.4%, 22.9%, 31.4%)
CIE-LABlab(44.99, 52.66, -16.44)
CIE-LCHlch(44.99, 55.16, 342.66°)
OKLaboklab(54.73% 0.1583 -0.0437)
OKLCHoklch(54.73% 0.164 344.6)
XYZxyz(23.8865, 14.5323, 24.4640)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4087 #40AF68
analogous
#A040AF #AF4087 #AF404F
triadic
#AF4087 #87AF40 #4087AF
tetradic
#AF4087 #AFA040 #40AF68 #404FAF
square
#AF4087 #AFA040 #40AF68 #404FAF
split-complementary
#AF4087 #4FAF40 #40AFA0
monochromatic
#551F42 #823064 #AF4087 #C765A4 #D792BE

Accessibility & contrast

On white

5.38
#AF4087 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF4087 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4087
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4087#FFFFFF#000000##FFFFFF
##AF40871.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5F89
Deuteranopia (green-blind)
#6B7184
Tritanopia (blue-blind)
#BA3F5E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af4087;
/* rgb */ color: rgb(175, 64, 135);
/* oklch */ color: oklch(54.7% 0.164 344.6);
Tailwind
colors: {
  custom: {
    50: '#ca7caa',
    500: '#af4087',
    950: '#000000',
  },
}
SCSS
$custom: #af4087;
$custom-light: #ca7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4087",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 321.622,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54732,
    "c": 0.1642,
    "h": 344.6
  },
  "luminance": 0.1453
}

Semantic roles & 50–950 ramp

primary
#AF4087
secondary
#88C39D
accent
#D68152
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF4087

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

Preview Lab → · Contrast checker → · Palette generator →

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