#AF2C8C#AF2C8C

#AF2C8C is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.193 H 341.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF2C8C
RGBrgb(175, 44, 140)
HSLhsl(316, 60%, 43%)
HSVhsv(316, 75%, 69%)
CMYKcmyk(0%, 74.9%, 20%, 31.4%)
CIE-LABlab(42.48, 60.93, -23.34)
CIE-LCHlch(42.48, 65.25, 339.04°)
OKLaboklab(52.97% 0.1824 -0.0629)
OKLCHoklch(52.97% 0.193 341)
XYZxyz(23.3142, 12.8111, 26.0508)
Luminance0.1281 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C8C #2CAF4F
analogous
#912CAF #AF2C8C #AF2C4A
triadic
#AF2C8C #8CAF2C #2C8CAF
tetradic
#AF2C8C #AF912C #2CAF4F #2C4AAF
square
#AF2C8C #AF912C #2CAF4F #2C4AAF
split-complementary
#AF2C8C #4AAF2C #2CAF91
monochromatic
#4D133E #7E2065 #AF2C8C #D147AC #DD78C2

Accessibility & contrast

On white

5.90
#AF2C8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF2C8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C8C
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C8C#FFFFFF#000000##FFFFFF
##AF2C8C1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578F
Deuteranopia (green-blind)
#616C89
Tritanopia (blue-blind)
#BA2F59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2c8c;
/* rgb */ color: rgb(175, 44, 140);
/* oklch */ color: oklch(53.0% 0.193 341.0);
Tailwind
colors: {
  custom: {
    50: '#cb72ae',
    500: '#af2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #af2c8c;
$custom-light: #cb72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c8c",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 316.031,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52968,
    "c": 0.19291,
    "h": 341
  },
  "luminance": 0.12809
}

Semantic roles & 50–950 ramp

primary
#AF2C8C
secondary
#72C588
accent
#E36F45
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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