#AF2C88#AF2C88

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

Color values

HEX#AF2C88
RGBrgb(175, 44, 136)
HSLhsl(318, 60%, 43%)
HSVhsv(318, 75%, 69%)
CMYKcmyk(0%, 74.9%, 22.3%, 31.4%)
CIE-LABlab(42.30, 60.39, -21.17)
CIE-LCHlch(42.30, 64.00, 340.68°)
OKLaboklab(52.78% 0.1817 -0.0567)
OKLCHoklch(52.78% 0.19 342.7)
XYZxyz(23.0246, 12.6953, 24.5256)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C88 #2CAF53
analogous
#952CAF #AF2C88 #AF2C46
triadic
#AF2C88 #88AF2C #2C88AF
tetradic
#AF2C88 #AF952C #2CAF53 #2C46AF
square
#AF2C88 #AF952C #2CAF53 #2C46AF
split-complementary
#AF2C88 #46AF2C #2CAF95
monochromatic
#4D133C #7E2062 #AF2C88 #D147A8 #DD78BF

Accessibility & contrast

On white

5.93
#AF2C88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF2C88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C88
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C88#FFFFFF#000000##FFFFFF
##AF2C881.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39568A
Deuteranopia (green-blind)
#626C85
Tritanopia (blue-blind)
#BA2D57
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2c88;
/* rgb */ color: rgb(175, 44, 136);
/* oklch */ color: oklch(52.8% 0.190 342.7);
Tailwind
colors: {
  custom: {
    50: '#cb72ab',
    500: '#af2c88',
    950: '#000000',
  },
}
SCSS
$custom: #af2c88;
$custom-light: #cb72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c88",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 317.863,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52783,
    "c": 0.19038,
    "h": 342.7
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2C88

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

Preview Lab → · Contrast checker → · Palette generator →

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