#AF2A9E#AF2A9E

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

Color values

HEX#AF2A9E
RGBrgb(175, 42, 158)
HSLhsl(308, 61%, 43%)
HSVhsv(308, 76%, 69%)
CMYKcmyk(0%, 76%, 9.7%, 31.4%)
CIE-LABlab(43.12, 64.14, -33.21)
CIE-LCHlch(43.12, 72.23, 332.62°)
OKLaboklab(53.72% 0.1861 -0.091)
OKLCHoklch(53.72% 0.207 333.9)
XYZxyz(24.6789, 13.2407, 33.5971)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9E #2AAF3B
analogous
#7D2AAF #AF2A9E #AF2A5C
triadic
#AF2A9E #9EAF2A #2A9EAF
tetradic
#AF2A9E #AF7D2A #2AAF3B #2A5CAF
square
#AF2A9E #AF7D2A #2AAF3B #2A5CAF
split-complementary
#AF2A9E #5CAF2A #2AAF7D
monochromatic
#4C1245 #7E1E71 #AF2A9E #D244C0 #DE75D1

Accessibility & contrast

On white

5.76
#AF2A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A9E
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A9E#FFFFFF#000000##FFFFFF
##AF2A9E1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA1
Deuteranopia (green-blind)
#596D9B
Tritanopia (blue-blind)
#B73762
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2a9e;
/* rgb */ color: rgb(175, 42, 158);
/* oklch */ color: oklch(53.7% 0.207 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb72bb',
    500: '#af2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9e;
$custom-light: #cb72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9e",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 307.669,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53716,
    "c": 0.2072,
    "h": 333.9
  },
  "luminance": 0.13239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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