#AF2E74#AF2E74

#AF2E74 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.177 H 351.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF2E74
RGBrgb(175, 46, 116)
HSLhsl(327, 58%, 43%)
HSVhsv(327, 74%, 69%)
CMYKcmyk(0%, 73.7%, 33.7%, 31.4%)
CIE-LABlab(41.74, 57.24, -9.71)
CIE-LCHlch(41.74, 58.05, 350.37°)
OKLaboklab(52.11% 0.1752 -0.0251)
OKLCHoklch(52.11% 0.177 351.9)
XYZxyz(21.8098, 12.3315, 17.7513)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E74 #2EAF69
analogous
#A92EAF #AF2E74 #AF2E33
triadic
#AF2E74 #74AF2E #2E74AF
tetradic
#AF2E74 #AFA92E #2EAF69 #2E33AF
square
#AF2E74 #AFA92E #2EAF69 #2E33AF
split-complementary
#AF2E74 #33AF2E #2EAFA9
monochromatic
#4E1534 #7F2154 #AF2E74 #D04B93 #DC7BB0

Accessibility & contrast

On white

6.06
#AF2E74 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF2E74 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E74
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E74#FFFFFF#000000##FFFFFF
##AF2E741.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445476
Deuteranopia (green-blind)
#696B71
Tritanopia (blue-blind)
#BC244D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2e74;
/* rgb */ color: rgb(175, 46, 116);
/* oklch */ color: oklch(52.1% 0.177 351.9);
Tailwind
colors: {
  custom: {
    50: '#cb729c',
    500: '#af2e74',
    950: '#000000',
  },
}
SCSS
$custom: #af2e74;
$custom-light: #cb729c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e74",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 116
  },
  "hsl": {
    "h": 327.442,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52112,
    "c": 0.177,
    "h": 351.9
  },
  "luminance": 0.12329
}

Semantic roles & 50–950 ramp

primary
#AF2E74
secondary
#74C599
accent
#E28D46
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2E74

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

Preview Lab → · Contrast checker → · Palette generator →

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