#AF2C8F#AF2C8F

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

Color values

HEX#AF2C8F
RGBrgb(175, 44, 143)
HSLhsl(315, 60%, 43%)
HSVhsv(315, 75%, 69%)
CMYKcmyk(0%, 74.9%, 18.3%, 31.4%)
CIE-LABlab(42.61, 61.35, -24.95)
CIE-LCHlch(42.61, 66.23, 337.87°)
OKLaboklab(53.11% 0.1828 -0.0674)
OKLCHoklch(53.11% 0.195 339.8)
XYZxyz(23.5384, 12.9008, 27.2317)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C8F #2CAF4C
analogous
#8D2CAF #AF2C8F #AF2C4E
triadic
#AF2C8F #8FAF2C #2C8FAF
tetradic
#AF2C8F #AF8D2C #2CAF4C #2C4EAF
square
#AF2C8F #AF8D2C #2CAF4C #2C4EAF
split-complementary
#AF2C8F #4EAF2C #2CAF8D
monochromatic
#4D133F #7E2067 #AF2C8F #D147AF #DD78C4

Accessibility & contrast

On white

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

On black

3.58
#AF2C8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF2C8F#FFFFFF#000000##FFFFFF
##AF2C8F1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355792
Deuteranopia (green-blind)
#606C8C
Tritanopia (blue-blind)
#B9315A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2c8f;
/* rgb */ color: rgb(175, 44, 143);
/* oklch */ color: oklch(53.1% 0.195 339.8);
Tailwind
colors: {
  custom: {
    50: '#cb72b0',
    500: '#af2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2c8f;
$custom-light: #cb72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c8f",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 314.656,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53111,
    "c": 0.19485,
    "h": 339.8
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#AF2C8F
secondary
#72C586
accent
#E36B45
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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