#AF29A6#AF29A6

#AF29A6 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.214 H 331.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF29A6
RGBrgb(175, 41, 166)
HSLhsl(304, 62%, 42%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 76.6%, 5.1%, 31.4%)
CIE-LABlab(43.44, 65.66, -37.50)
CIE-LCHlch(43.44, 75.61, 330.27°)
OKLaboklab(54.08% 0.1873 -0.1034)
OKLCHoklch(54.08% 0.214 331.1)
XYZxyz(25.3551, 13.4551, 37.3307)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF29A6 #29AF32
analogous
#7529AF #AF29A6 #AF2963
triadic
#AF29A6 #A6AF29 #29A6AF
tetradic
#AF29A6 #AF7529 #29AF32 #2963AF
square
#AF29A6 #AF7529 #29AF32 #2963AF
split-complementary
#AF29A6 #63AF29 #29AF75
monochromatic
#4C1248 #7D1D77 #AF29A6 #D342C9 #DE74D7

Accessibility & contrast

On white

5.69
#AF29A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF29A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF29A6
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF29A6#FFFFFF#000000##FFFFFF
##AF29A61.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BA9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#B63B66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af29a6;
/* rgb */ color: rgb(175, 41, 166);
/* oklch */ color: oklch(54.1% 0.214 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c1',
    500: '#af29a6',
    950: '#000000',
  },
}
SCSS
$custom: #af29a6;
$custom-light: #cb72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af29a6",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 304.03,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.21393,
    "h": 331.1
  },
  "luminance": 0.13453
}

Semantic roles & 50–950 ramp

primary
#AF29A6
secondary
#6EC674
accent
#E54E43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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