#AF2E7C#AF2E7C

#AF2E7C is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.4% C 0.181 H 348.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF2E7C
RGBrgb(175, 46, 124)
HSLhsl(324, 58%, 43%)
HSVhsv(324, 74%, 69%)
CMYKcmyk(0%, 73.7%, 29.1%, 31.4%)
CIE-LABlab(42.04, 58.19, -14.20)
CIE-LCHlch(42.04, 59.90, 346.28°)
OKLaboklab(52.43% 0.1772 -0.0374)
OKLCHoklch(52.43% 0.181 348.1)
XYZxyz(22.2954, 12.5257, 20.3084)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E7C #2EAF61
analogous
#A12EAF #AF2E7C #AF2E3B
triadic
#AF2E7C #7CAF2E #2E7CAF
tetradic
#AF2E7C #AFA12E #2EAF61 #2E3BAF
square
#AF2E7C #AFA12E #2EAF61 #2E3BAF
split-complementary
#AF2E7C #3BAF2E #2EAFA1
monochromatic
#4E1537 #7F215A #AF2E7C #D04B9B #DC7BB6

Accessibility & contrast

On white

5.99
#AF2E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF2E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E7C
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E7C#FFFFFF#000000##FFFFFF
##AF2E7C1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557E
Deuteranopia (green-blind)
#676B79
Tritanopia (blue-blind)
#BC2851
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2e7c;
/* rgb */ color: rgb(175, 46, 124);
/* oklch */ color: oklch(52.4% 0.181 348.1);
Tailwind
colors: {
  custom: {
    50: '#cb73a2',
    500: '#af2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #af2e7c;
$custom-light: #cb73a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e7c",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 323.721,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52431,
    "c": 0.18113,
    "h": 348.1
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#AF2E7C
secondary
#74C594
accent
#E28446
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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