#AF29A2#AF29A2

#AF29A2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.211 H 332.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF29A2
RGBrgb(175, 41, 162)
HSLhsl(306, 62%, 42%)
HSVhsv(306, 77%, 69%)
CMYKcmyk(0%, 76.6%, 7.4%, 31.4%)
CIE-LABlab(43.23, 65.04, -35.44)
CIE-LCHlch(43.23, 74.07, 331.41°)
OKLaboklab(53.86% 0.1872 -0.0975)
OKLCHoklch(53.86% 0.211 332.5)
XYZxyz(24.9938, 13.3106, 35.4283)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF29A2 #29AF36
analogous
#7929AF #AF29A2 #AF295F
triadic
#AF29A2 #A2AF29 #29A2AF
tetradic
#AF29A2 #AF7929 #29AF36 #295FAF
square
#AF29A2 #AF7929 #29AF36 #295FAF
split-complementary
#AF29A2 #5FAF29 #29AF79
monochromatic
#4C1246 #7D1D74 #AF29A2 #D342C5 #DE74D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF29A2#FFFFFF#000000##FFFFFF
##AF29A21.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)
#205AA5
Deuteranopia (green-blind)
#576D9F
Tritanopia (blue-blind)
#B73964
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af29a2;
/* rgb */ color: rgb(175, 41, 162);
/* oklch */ color: oklch(53.9% 0.211 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb72be',
    500: '#af29a2',
    950: '#000000',
  },
}
SCSS
$custom: #af29a2;
$custom-light: #cb72be;
$custom-dark: #000000;
JSON
{
  "hex": "#af29a2",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 305.821,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53858,
    "c": 0.21104,
    "h": 332.5
  },
  "luminance": 0.13308
}

Semantic roles & 50–950 ramp

primary
#AF29A2
secondary
#6EC677
accent
#E55243
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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