#AF29A8#AF29A8

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

Color values

HEX#AF29A8
RGBrgb(175, 41, 168)
HSLhsl(303, 62%, 42%)
HSVhsv(303, 77%, 69%)
CMYKcmyk(0%, 76.6%, 4%, 31.4%)
CIE-LABlab(43.55, 65.97, -38.51)
CIE-LCHlch(43.55, 76.39, 329.72°)
OKLaboklab(54.19% 0.1873 -0.1063)
OKLCHoklch(54.19% 0.215 330.4)
XYZxyz(25.5399, 13.5290, 38.3044)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF29A8 #29AF30
analogous
#7329AF #AF29A8 #AF2965
triadic
#AF29A8 #A8AF29 #29A8AF
tetradic
#AF29A8 #AF7329 #29AF30 #2965AF
square
#AF29A8 #AF7329 #29AF30 #2965AF
split-complementary
#AF29A8 #65AF29 #29AF73
monochromatic
#4C1249 #7D1D78 #AF29A8 #D342CB #DE74D9

Accessibility & contrast

On white

5.67
#AF29A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF29A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF29A8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF29A8#FFFFFF#000000##FFFFFF
##AF29A81.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#B63C67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af29a8;
/* rgb */ color: rgb(175, 41, 168);
/* oklch */ color: oklch(54.2% 0.215 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c2',
    500: '#af29a8',
    950: '#000000',
  },
}
SCSS
$custom: #af29a8;
$custom-light: #cb72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af29a8",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 303.134,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54193,
    "c": 0.21539,
    "h": 330.4
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#AF29A8
secondary
#6EC673
accent
#E54B43
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF29A8

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

Preview Lab → · Contrast checker → · Palette generator →

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