#AF2A9D#AF2A9D

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

Color values

HEX#AF2A9D
RGBrgb(175, 42, 157)
HSLhsl(308, 61%, 43%)
HSVhsv(308, 76%, 69%)
CMYKcmyk(0%, 76%, 10.3%, 31.4%)
CIE-LABlab(43.07, 63.99, -32.69)
CIE-LCHlch(43.07, 71.86, 332.94°)
OKLaboklab(53.66% 0.1861 -0.0895)
OKLCHoklch(53.66% 0.206 334.3)
XYZxyz(24.5932, 13.2064, 33.1456)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9D #2AAF3C
analogous
#7E2AAF #AF2A9D #AF2A5B
triadic
#AF2A9D #9DAF2A #2A9DAF
tetradic
#AF2A9D #AF7E2A #2AAF3C #2A5BAF
square
#AF2A9D #AF7E2A #2AAF3C #2A5BAF
split-complementary
#AF2A9D #5BAF2A #2AAF7E
monochromatic
#4C1244 #7E1E71 #AF2A9D #D244BF #DE75D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2A9D#FFFFFF#000000##FFFFFF
##AF2A9D1.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)
#2759A0
Deuteranopia (green-blind)
#596D9A
Tritanopia (blue-blind)
#B73761
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2a9d;
/* rgb */ color: rgb(175, 42, 157);
/* oklch */ color: oklch(53.7% 0.206 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb72ba',
    500: '#af2a9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9d;
$custom-light: #cb72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9d",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 308.12,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53663,
    "c": 0.20649,
    "h": 334.3
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#AF2A9D
secondary
#6FC67B
accent
#E45943
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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