#AF2A99#AF2A99

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

Color values

HEX#AF2A99
RGBrgb(175, 42, 153)
HSLhsl(310, 61%, 43%)
HSVhsv(310, 76%, 69%)
CMYKcmyk(0%, 76%, 12.6%, 31.4%)
CIE-LABlab(42.87, 63.40, -30.60)
CIE-LCHlch(42.87, 70.40, 334.24°)
OKLaboklab(53.45% 0.1858 -0.0835)
OKLCHoklch(53.45% 0.204 335.8)
XYZxyz(24.2573, 13.0720, 31.3764)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A99 #2AAF40
analogous
#832AAF #AF2A99 #AF2A56
triadic
#AF2A99 #99AF2A #2A99AF
tetradic
#AF2A99 #AF832A #2AAF40 #2A56AF
square
#AF2A99 #AF832A #2AAF40 #2A56AF
split-complementary
#AF2A99 #56AF2A #2AAF83
monochromatic
#4C1243 #7E1E6E #AF2A99 #D244BB #DE75CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2A99#FFFFFF#000000##FFFFFF
##AF2A991.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)
#2B599C
Deuteranopia (green-blind)
#5B6C96
Tritanopia (blue-blind)
#B8345F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a99;
/* rgb */ color: rgb(175, 42, 153);
/* oklch */ color: oklch(53.5% 0.204 335.8);
Tailwind
colors: {
  custom: {
    50: '#cb72b7',
    500: '#af2a99',
    950: '#000000',
  },
}
SCSS
$custom: #af2a99;
$custom-light: #cb72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a99",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 309.925,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53453,
    "c": 0.20369,
    "h": 335.8
  },
  "luminance": 0.1307
}

Semantic roles & 50–950 ramp

primary
#AF2A99
secondary
#6FC67E
accent
#E45E43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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