#AF2E99#AF2E99

#AF2E99 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.8% C 0.199 H 335.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF2E99
RGBrgb(175, 46, 153)
HSLhsl(310, 58%, 43%)
HSVhsv(310, 74%, 69%)
CMYKcmyk(0%, 73.7%, 12.6%, 31.4%)
CIE-LABlab(43.32, 62.13, -29.90)
CIE-LCHlch(43.32, 68.95, 334.30°)
OKLaboklab(53.77% 0.182 -0.0816)
OKLCHoklch(53.77% 0.199 335.9)
XYZxyz(24.4063, 13.3701, 31.4261)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E99 #2EAF44
analogous
#842EAF #AF2E99 #AF2E58
triadic
#AF2E99 #99AF2E #2E99AF
tetradic
#AF2E99 #AF842E #2EAF44 #2E58AF
square
#AF2E99 #AF842E #2EAF44 #2E58AF
split-complementary
#AF2E99 #58AF2E #2EAF84
monochromatic
#4E1544 #7F216F #AF2E99 #D04BB9 #DC7BCC

Accessibility & contrast

On white

5.72
#AF2E99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2E99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E99
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E99#FFFFFF#000000##FFFFFF
##AF2E991.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9C
Deuteranopia (green-blind)
#5D6D96
Tritanopia (blue-blind)
#B83760
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e99;
/* rgb */ color: rgb(175, 46, 153);
/* oklch */ color: oklch(53.8% 0.199 335.9);
Tailwind
colors: {
  custom: {
    50: '#cb74b7',
    500: '#af2e99',
    950: '#000000',
  },
}
SCSS
$custom: #af2e99;
$custom-light: #cb74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e99",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 310.233,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53773,
    "c": 0.19946,
    "h": 335.9
  },
  "luminance": 0.13368
}

Semantic roles & 50–950 ramp

primary
#AF2E99
secondary
#74C582
accent
#E26146
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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