#AF299D#AF299D

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

Color values

HEX#AF299D
RGBrgb(175, 41, 157)
HSLhsl(308, 62%, 42%)
HSVhsv(308, 77%, 69%)
CMYKcmyk(0%, 76.6%, 10.3%, 31.4%)
CIE-LABlab(42.97, 64.29, -32.86)
CIE-LCHlch(42.97, 72.20, 332.93°)
OKLaboklab(53.59% 0.187 -0.09)
OKLCHoklch(53.59% 0.207 334.3)
XYZxyz(24.5582, 13.1363, 33.1339)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF299D #29AF3B
analogous
#7E29AF #AF299D #AF295A
triadic
#AF299D #9DAF29 #299DAF
tetradic
#AF299D #AF7E29 #29AF3B #295AAF
square
#AF299D #AF7E29 #29AF3B #295AAF
split-complementary
#AF299D #5AAF29 #29AF7E
monochromatic
#4C1244 #7D1D71 #AF299D #D342BF #DE74D0

Accessibility & contrast

On white

5.79
#AF299D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF299D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF299D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF299D#FFFFFF#000000##FFFFFF
##AF299D1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2659A0
Deuteranopia (green-blind)
#596C9A
Tritanopia (blue-blind)
#B73661
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af299d;
/* rgb */ color: rgb(175, 41, 157);
/* oklch */ color: oklch(53.6% 0.207 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb72ba',
    500: '#af299d',
    950: '#000000',
  },
}
SCSS
$custom: #af299d;
$custom-light: #cb72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af299d",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 308.06,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.20749,
    "h": 334.3
  },
  "luminance": 0.13134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF299D

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

Preview Lab → · Contrast checker → · Palette generator →

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