#AF2E89#AF2E89

#AF2E89 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.189 H 342.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AF2E89
RGBrgb(175, 46, 137)
HSLhsl(318, 58%, 43%)
HSVhsv(318, 74%, 69%)
CMYKcmyk(0%, 73.7%, 21.7%, 31.4%)
CIE-LABlab(42.58, 59.87, -21.36)
CIE-LCHlch(42.58, 63.56, 340.37°)
OKLaboklab(53% 0.1799 -0.0573)
OKLCHoklch(53% 0.189 342.3)
XYZxyz(23.1723, 12.8765, 24.9271)
Luminance0.1287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E89 #2EAF54
analogous
#942EAF #AF2E89 #AF2E49
triadic
#AF2E89 #89AF2E #2E89AF
tetradic
#AF2E89 #AF942E #2EAF54 #2E49AF
square
#AF2E89 #AF942E #2EAF54 #2E49AF
split-complementary
#AF2E89 #49AF2E #2EAF94
monochromatic
#4E153D #7F2163 #AF2E89 #D04BA8 #DC7BC0

Accessibility & contrast

On white

5.87
#AF2E89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2E89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E89
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E89#FFFFFF#000000##FFFFFF
##AF2E891.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578B
Deuteranopia (green-blind)
#636C86
Tritanopia (blue-blind)
#BA2F58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2e89;
/* rgb */ color: rgb(175, 46, 137);
/* oklch */ color: oklch(53.0% 0.189 342.3);
Tailwind
colors: {
  custom: {
    50: '#cb73ab',
    500: '#af2e89',
    950: '#000000',
  },
}
SCSS
$custom: #af2e89;
$custom-light: #cb73ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e89",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 317.674,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52997,
    "c": 0.18879,
    "h": 342.3
  },
  "luminance": 0.12874
}

Semantic roles & 50–950 ramp

primary
#AF2E89
secondary
#74C58C
accent
#E27446
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2E89

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

Preview Lab → · Contrast checker → · Palette generator →

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