#AF2C95#AF2C95

#AF2C95 is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.4% C 0.199 H 337.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF2C95
RGBrgb(175, 44, 149)
HSLhsl(312, 60%, 43%)
HSVhsv(312, 75%, 69%)
CMYKcmyk(0%, 74.9%, 14.9%, 31.4%)
CIE-LABlab(42.89, 62.20, -28.15)
CIE-LCHlch(42.89, 68.27, 335.65°)
OKLaboklab(53.41% 0.1835 -0.0765)
OKLCHoklch(53.41% 0.199 337.4)
XYZxyz(24.0052, 13.0875, 29.6898)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C95 #2CAF46
analogous
#872CAF #AF2C95 #AF2C54
triadic
#AF2C95 #95AF2C #2C95AF
tetradic
#AF2C95 #AF872C #2CAF46 #2C54AF
square
#AF2C95 #AF872C #2CAF46 #2C54AF
split-complementary
#AF2C95 #54AF2C #2CAF87
monochromatic
#4D1342 #7E206B #AF2C95 #D147B6 #DD78C9

Accessibility & contrast

On white

5.81
#AF2C95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF2C95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C95
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C95#FFFFFF#000000##FFFFFF
##AF2C951.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315898
Deuteranopia (green-blind)
#5D6C92
Tritanopia (blue-blind)
#B9345E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2c95;
/* rgb */ color: rgb(175, 44, 149);
/* oklch */ color: oklch(53.4% 0.199 337.4);
Tailwind
colors: {
  custom: {
    50: '#cb73b4',
    500: '#af2c95',
    950: '#000000',
  },
}
SCSS
$custom: #af2c95;
$custom-light: #cb73b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c95",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 311.908,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53406,
    "c": 0.19886,
    "h": 337.4
  },
  "luminance": 0.13085
}

Semantic roles & 50–950 ramp

primary
#AF2C95
secondary
#72C582
accent
#E36445
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C95

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

Preview Lab → · Contrast checker → · Palette generator →

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