#AF2A9B#AF2A9B

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

Color values

HEX#AF2A9B
RGBrgb(175, 42, 155)
HSLhsl(309, 61%, 43%)
HSVhsv(309, 76%, 69%)
CMYKcmyk(0%, 76%, 11.4%, 31.4%)
CIE-LABlab(42.97, 63.69, -31.65)
CIE-LCHlch(42.97, 71.12, 333.58°)
OKLaboklab(53.56% 0.1859 -0.0865)
OKLCHoklch(53.56% 0.205 335)
XYZxyz(24.4239, 13.1386, 32.2537)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9B #2AAF3E
analogous
#812AAF #AF2A9B #AF2A58
triadic
#AF2A9B #9BAF2A #2A9BAF
tetradic
#AF2A9B #AF812A #2AAF3E #2A58AF
square
#AF2A9B #AF812A #2AAF3E #2A58AF
split-complementary
#AF2A9B #58AF2A #2AAF81
monochromatic
#4C1244 #7E1E6F #AF2A9B #D244BD #DE75CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2A9B#FFFFFF#000000##FFFFFF
##AF2A9B1.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)
#29599E
Deuteranopia (green-blind)
#5A6C98
Tritanopia (blue-blind)
#B83660
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a9b;
/* rgb */ color: rgb(175, 42, 155);
/* oklch */ color: oklch(53.6% 0.205 335.0);
Tailwind
colors: {
  custom: {
    50: '#cb72b9',
    500: '#af2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9b;
$custom-light: #cb72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9b",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 309.023,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53557,
    "c": 0.20508,
    "h": 335
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

primary
#AF2A9B
secondary
#6FC67C
accent
#E45C43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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