#AF2E97#AF2E97

#AF2E97 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.7% C 0.198 H 336.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF2E97
RGBrgb(175, 46, 151)
HSLhsl(311, 58%, 43%)
HSVhsv(311, 74%, 69%)
CMYKcmyk(0%, 73.7%, 13.7%, 31.4%)
CIE-LABlab(43.22, 61.84, -28.85)
CIE-LCHlch(43.22, 68.24, 334.99°)
OKLaboklab(53.67% 0.1818 -0.0785)
OKLCHoklch(53.67% 0.198 336.6)
XYZxyz(24.2425, 13.3045, 30.5634)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E97 #2EAF46
analogous
#862EAF #AF2E97 #AF2E56
triadic
#AF2E97 #97AF2E #2E97AF
tetradic
#AF2E97 #AF862E #2EAF46 #2E56AF
square
#AF2E97 #AF862E #2EAF46 #2E56AF
split-complementary
#AF2E97 #56AF2E #2EAF86
monochromatic
#4E1543 #7F216D #AF2E97 #D04BB7 #DC7BCA

Accessibility & contrast

On white

5.74
#AF2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E97
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E97#FFFFFF#000000##FFFFFF
##AF2E971.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#5D6D94
Tritanopia (blue-blind)
#B8365F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e97;
/* rgb */ color: rgb(175, 46, 151);
/* oklch */ color: oklch(53.7% 0.198 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#af2e97',
    950: '#000000',
  },
}
SCSS
$custom: #af2e97;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e97",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 311.163,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53671,
    "c": 0.19806,
    "h": 336.6
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#AF2E97
secondary
#74C583
accent
#E26346
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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