#AF299C#AF299C

#AF299C is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.207 H 334.7°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF299C
RGBrgb(175, 41, 156)
HSLhsl(309, 62%, 42%)
HSVhsv(309, 77%, 69%)
CMYKcmyk(0%, 76.6%, 10.9%, 31.4%)
CIE-LABlab(42.92, 64.14, -32.33)
CIE-LCHlch(42.92, 71.83, 333.25°)
OKLaboklab(53.54% 0.1869 -0.0885)
OKLCHoklch(53.54% 0.207 334.7)
XYZxyz(24.4732, 13.1023, 32.6861)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF299C #29AF3C
analogous
#7F29AF #AF299C #AF2959
triadic
#AF299C #9CAF29 #299CAF
tetradic
#AF299C #AF7F29 #29AF3C #2959AF
square
#AF299C #AF7F29 #29AF3C #2959AF
split-complementary
#AF299C #59AF29 #29AF7F
monochromatic
#4C1244 #7D1D70 #AF299C #D342BE #DE74CF

Accessibility & contrast

On white

5.80
#AF299C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF299C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF299C
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF299C#FFFFFF#000000##FFFFFF
##AF299C1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27599F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B83561
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af299c;
/* rgb */ color: rgb(175, 41, 156);
/* oklch */ color: oklch(53.5% 0.207 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb72b9',
    500: '#af299c',
    950: '#000000',
  },
}
SCSS
$custom: #af299c;
$custom-light: #cb72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af299c",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 308.507,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.20679,
    "h": 334.7
  },
  "luminance": 0.131
}

Semantic roles & 50–950 ramp

primary
#AF299C
secondary
#6EC67A
accent
#E55A43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF299C

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

Preview Lab → · Contrast checker → · Palette generator →

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