#AF29A7#AF29A7

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

Color values

HEX#AF29A7
RGBrgb(175, 41, 167)
HSLhsl(304, 62%, 42%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 76.6%, 4.6%, 31.4%)
CIE-LABlab(43.50, 65.81, -38.01)
CIE-LCHlch(43.50, 76.00, 329.99°)
OKLaboklab(54.14% 0.1873 -0.1049)
OKLCHoklch(54.14% 0.215 330.8)
XYZxyz(25.4471, 13.4919, 37.8157)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF29A7 #29AF31
analogous
#7429AF #AF29A7 #AF2964
triadic
#AF29A7 #A7AF29 #29A7AF
tetradic
#AF29A7 #AF7429 #29AF31 #2964AF
square
#AF29A7 #AF7429 #29AF31 #2964AF
split-complementary
#AF29A7 #64AF29 #29AF74
monochromatic
#4C1248 #7D1D78 #AF29A7 #D342CA #DE74D8

Accessibility & contrast

On white

5.68
#AF29A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF29A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF29A7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF29A7#FFFFFF#000000##FFFFFF
##AF29A71.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195BAA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#B63B67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af29a7;
/* rgb */ color: rgb(175, 41, 167);
/* oklch */ color: oklch(54.1% 0.215 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c1',
    500: '#af29a7',
    950: '#000000',
  },
}
SCSS
$custom: #af29a7;
$custom-light: #cb72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af29a7",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 303.582,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54136,
    "c": 0.21466,
    "h": 330.8
  },
  "luminance": 0.1349
}

Semantic roles & 50–950 ramp

primary
#AF29A7
secondary
#6EC673
accent
#E54C43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF29A7

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

Preview Lab → · Contrast checker → · Palette generator →

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