#AF2C87#AF2C87

#AF2C87 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.190 H 343.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF2C87
RGBrgb(175, 44, 135)
HSLhsl(318, 60%, 43%)
HSVhsv(318, 75%, 69%)
CMYKcmyk(0%, 74.9%, 22.9%, 31.4%)
CIE-LABlab(42.26, 60.26, -20.63)
CIE-LCHlch(42.26, 63.69, 341.11°)
OKLaboklab(52.74% 0.1816 -0.0552)
OKLCHoklch(52.74% 0.19 343.1)
XYZxyz(22.9539, 12.6670, 24.1531)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C87 #2CAF54
analogous
#962CAF #AF2C87 #AF2C45
triadic
#AF2C87 #87AF2C #2C87AF
tetradic
#AF2C87 #AF962C #2CAF54 #2C45AF
square
#AF2C87 #AF962C #2CAF54 #2C45AF
split-complementary
#AF2C87 #45AF2C #2CAF96
monochromatic
#4D133C #7E2061 #AF2C87 #D147A7 #DD78BE

Accessibility & contrast

On white

5.94
#AF2C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF2C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C87
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C87#FFFFFF#000000##FFFFFF
##AF2C871.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5689
Deuteranopia (green-blind)
#636C84
Tritanopia (blue-blind)
#BA2C56
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2c87;
/* rgb */ color: rgb(175, 44, 135);
/* oklch */ color: oklch(52.7% 0.190 343.1);
Tailwind
colors: {
  custom: {
    50: '#cb72aa',
    500: '#af2c87',
    950: '#000000',
  },
}
SCSS
$custom: #af2c87;
$custom-light: #cb72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c87",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 318.321,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52737,
    "c": 0.18977,
    "h": 343.1
  },
  "luminance": 0.12665
}

Semantic roles & 50–950 ramp

primary
#AF2C87
secondary
#72C58B
accent
#E37545
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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