#AF2A9F#AF2A9F

#AF2A9F is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.208 H 333.6°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF2A9F
RGBrgb(175, 42, 159)
HSLhsl(307, 61%, 43%)
HSVhsv(307, 76%, 69%)
CMYKcmyk(0%, 76%, 9.1%, 31.4%)
CIE-LABlab(43.17, 64.29, -33.73)
CIE-LCHlch(43.17, 72.60, 332.32°)
OKLaboklab(53.77% 0.1862 -0.0925)
OKLCHoklch(53.77% 0.208 333.6)
XYZxyz(24.7654, 13.2752, 34.0522)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9F #2AAF3A
analogous
#7C2AAF #AF2A9F #AF2A5D
triadic
#AF2A9F #9FAF2A #2A9FAF
tetradic
#AF2A9F #AF7C2A #2AAF3A #2A5DAF
square
#AF2A9F #AF7C2A #2AAF3A #2A5DAF
split-complementary
#AF2A9F #5DAF2A #2AAF7C
monochromatic
#4C1245 #7E1E72 #AF2A9F #D244C1 #DE75D1

Accessibility & contrast

On white

5.75
#AF2A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A9F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A9F#FFFFFF#000000##FFFFFF
##AF2A9F1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255AA2
Deuteranopia (green-blind)
#586D9C
Tritanopia (blue-blind)
#B73862
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2a9f;
/* rgb */ color: rgb(175, 42, 159);
/* oklch */ color: oklch(53.8% 0.208 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb72bc',
    500: '#af2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9f;
$custom-light: #cb72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 307.218,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5377,
    "c": 0.2079,
    "h": 333.6
  },
  "luminance": 0.13273
}

Semantic roles & 50–950 ramp

primary
#AF2A9F
secondary
#6FC67A
accent
#E45743
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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