#AF2E96#AF2E96

#AF2E96 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.6% C 0.197 H 337.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF2E96
RGBrgb(175, 46, 150)
HSLhsl(312, 58%, 43%)
HSVhsv(312, 74%, 69%)
CMYKcmyk(0%, 73.7%, 14.3%, 31.4%)
CIE-LABlab(43.17, 61.69, -28.32)
CIE-LCHlch(43.17, 67.88, 335.34°)
OKLaboklab(53.62% 0.1817 -0.077)
OKLCHoklch(53.62% 0.197 337)
XYZxyz(24.1617, 13.2722, 30.1375)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E96 #2EAF47
analogous
#872EAF #AF2E96 #AF2E55
triadic
#AF2E96 #96AF2E #2E96AF
tetradic
#AF2E96 #AF872E #2EAF47 #2E55AF
square
#AF2E96 #AF872E #2EAF47 #2E55AF
split-complementary
#AF2E96 #55AF2E #2EAF87
monochromatic
#4E1543 #7F216C #AF2E96 #D04BB6 #DC7BC9

Accessibility & contrast

On white

5.75
#AF2E96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2E96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E96
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E96#FFFFFF#000000##FFFFFF
##AF2E961.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325999
Deuteranopia (green-blind)
#5E6D93
Tritanopia (blue-blind)
#B8365F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e96;
/* rgb */ color: rgb(175, 46, 150);
/* oklch */ color: oklch(53.6% 0.197 337.0);
Tailwind
colors: {
  custom: {
    50: '#cb74b5',
    500: '#af2e96',
    950: '#000000',
  },
}
SCSS
$custom: #af2e96;
$custom-light: #cb74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e96",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 311.628,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53621,
    "c": 0.19737,
    "h": 337
  },
  "luminance": 0.1327
}

Semantic roles & 50–950 ramp

primary
#AF2E96
secondary
#74C584
accent
#E26446
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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