#AF299B#AF299B

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

Color values

HEX#AF299B
RGBrgb(175, 41, 155)
HSLhsl(309, 62%, 42%)
HSVhsv(309, 77%, 69%)
CMYKcmyk(0%, 76.6%, 11.4%, 31.4%)
CIE-LABlab(42.87, 63.99, -31.81)
CIE-LCHlch(42.87, 71.46, 333.57°)
OKLaboklab(53.48% 0.1868 -0.087)
OKLCHoklch(53.48% 0.206 335)
XYZxyz(24.3888, 13.0686, 32.2420)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF299B #29AF3D
analogous
#8029AF #AF299B #AF2958
triadic
#AF299B #9BAF29 #299BAF
tetradic
#AF299B #AF8029 #29AF3D #2958AF
square
#AF299B #AF8029 #29AF3D #2958AF
split-complementary
#AF299B #58AF29 #29AF80
monochromatic
#4C1243 #7D1D6F #AF299B #D342BD #DE74CF

Accessibility & contrast

On white

5.81
#AF299B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF299B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF299B
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF299B#FFFFFF#000000##FFFFFF
##AF299B1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599E
Deuteranopia (green-blind)
#5A6C98
Tritanopia (blue-blind)
#B83560
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af299b;
/* rgb */ color: rgb(175, 41, 155);
/* oklch */ color: oklch(53.5% 0.206 335.0);
Tailwind
colors: {
  custom: {
    50: '#cb72b9',
    500: '#af299b',
    950: '#000000',
  },
}
SCSS
$custom: #af299b;
$custom-light: #cb72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af299b",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 308.955,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53482,
    "c": 0.20608,
    "h": 335
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#AF299B
secondary
#6EC67B
accent
#E55B43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF299B

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

Preview Lab → · Contrast checker → · Palette generator →

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