#AF2C8B#AF2C8B

#AF2C8B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.192 H 341.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF2C8B
RGBrgb(175, 44, 139)
HSLhsl(316, 60%, 43%)
HSVhsv(316, 75%, 69%)
CMYKcmyk(0%, 74.9%, 20.6%, 31.4%)
CIE-LABlab(42.43, 60.80, -22.80)
CIE-LCHlch(42.43, 64.93, 339.44°)
OKLaboklab(52.92% 0.1822 -0.0613)
OKLCHoklch(52.92% 0.192 341.4)
XYZxyz(23.2408, 12.7818, 25.6643)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C8B #2CAF50
analogous
#922CAF #AF2C8B #AF2C49
triadic
#AF2C8B #8BAF2C #2C8BAF
tetradic
#AF2C8B #AF922C #2CAF50 #2C49AF
square
#AF2C8B #AF922C #2CAF50 #2C49AF
split-complementary
#AF2C8B #49AF2C #2CAF92
monochromatic
#4D133D #7E2064 #AF2C8B #D147AB #DD78C1

Accessibility & contrast

On white

5.91
#AF2C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2C8B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C8B#FFFFFF#000000##FFFFFF
##AF2C8B1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578E
Deuteranopia (green-blind)
#616C88
Tritanopia (blue-blind)
#BA2F58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2c8b;
/* rgb */ color: rgb(175, 44, 139);
/* oklch */ color: oklch(52.9% 0.192 341.4);
Tailwind
colors: {
  custom: {
    50: '#cb72ad',
    500: '#af2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2c8b;
$custom-light: #cb72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c8b",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 316.489,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52921,
    "c": 0.19226,
    "h": 341.4
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#AF2C8B
secondary
#72C589
accent
#E37045
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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