#AF29B2#AF29B2

#AF29B2 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.223 H 327.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF29B2
RGBrgb(175, 41, 178)
HSLhsl(299, 63%, 43%)
HSVhsv(299, 77%, 70%)
CMYKcmyk(1.7%, 77%, 0%, 30.2%)
CIE-LABlab(44.11, 67.57, -43.55)
CIE-LCHlch(44.11, 80.39, 327.20°)
OKLaboklab(54.78% 0.1871 -0.121)
OKLCHoklch(54.78% 0.223 327.1)
XYZxyz(26.5076, 13.9161, 43.4008)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF29B2 #2CB229
analogous
#6A29B2 #AF29B2 #B22970
triadic
#AF29B2 #B2AF29 #29B2AF
tetradic
#AF29B2 #B26A29 #2CB229 #2970B2
square
#AF29B2 #B26A29 #2CB229 #2970B2
split-complementary
#AF29B2 #70B229 #29B26A
monochromatic
#4D124F #7E1E80 #AF29B2 #D144D4 #DD76DF

Accessibility & contrast

On white

5.55
#AF29B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF29B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF29B2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF29B2#FFFFFF#000000##FFFFFF
##AF29B21.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#B4416D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af29b2;
/* rgb */ color: rgb(175, 41, 178);
/* oklch */ color: oklch(54.8% 0.223 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c9',
    500: '#af29b2',
    950: '#000000',
  },
}
SCSS
$custom: #af29b2;
$custom-light: #cb73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af29b2",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 298.686,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54775,
    "c": 0.22283,
    "h": 327.1
  },
  "luminance": 0.13914
}

Semantic roles & 50–950 ramp

primary
#AF29B2
secondary
#72C770
accent
#E64246
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF29B2

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

Preview Lab → · Contrast checker → · Palette generator →

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