#AF299F#AF299F

#AF299F is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.209 H 333.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF299F
RGBrgb(175, 41, 159)
HSLhsl(307, 62%, 42%)
HSVhsv(307, 77%, 69%)
CMYKcmyk(0%, 76.6%, 9.1%, 31.4%)
CIE-LABlab(43.07, 64.59, -33.89)
CIE-LCHlch(43.07, 72.94, 332.31°)
OKLaboklab(53.7% 0.1871 -0.093)
OKLCHoklch(53.7% 0.209 333.6)
XYZxyz(24.7303, 13.2052, 34.0405)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF299F #29AF39
analogous
#7C29AF #AF299F #AF295C
triadic
#AF299F #9FAF29 #299FAF
tetradic
#AF299F #AF7C29 #29AF39 #295CAF
square
#AF299F #AF7C29 #29AF39 #295CAF
split-complementary
#AF299F #5CAF29 #29AF7C
monochromatic
#4C1245 #7D1D72 #AF299F #D342C2 #DE74D2

Accessibility & contrast

On white

5.77
#AF299F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF299F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF299F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF299F#FFFFFF#000000##FFFFFF
##AF299F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#586C9C
Tritanopia (blue-blind)
#B73762
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af299f;
/* rgb */ color: rgb(175, 41, 159);
/* oklch */ color: oklch(53.7% 0.209 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb72bc',
    500: '#af299f',
    950: '#000000',
  },
}
SCSS
$custom: #af299f;
$custom-light: #cb72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af299f",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 307.164,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53695,
    "c": 0.2089,
    "h": 333.6
  },
  "luminance": 0.13203
}

Semantic roles & 50–950 ramp

primary
#AF299F
secondary
#6EC678
accent
#E55643
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF299F

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

Preview Lab → · Contrast checker → · Palette generator →

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