#AF2A9A#AF2A9A

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

Color values

HEX#AF2A9A
RGBrgb(175, 42, 154)
HSLhsl(309, 61%, 43%)
HSVhsv(309, 76%, 69%)
CMYKcmyk(0%, 76%, 12%, 31.4%)
CIE-LABlab(42.92, 63.54, -31.12)
CIE-LCHlch(42.92, 70.76, 333.90°)
OKLaboklab(53.51% 0.1859 -0.085)
OKLCHoklch(53.51% 0.204 335.4)
XYZxyz(24.3402, 13.1052, 31.8132)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9A #2AAF3F
analogous
#822AAF #AF2A9A #AF2A57
triadic
#AF2A9A #9AAF2A #2A9AAF
tetradic
#AF2A9A #AF822A #2AAF3F #2A57AF
square
#AF2A9A #AF822A #2AAF3F #2A57AF
split-complementary
#AF2A9A #57AF2A #2AAF82
monochromatic
#4C1243 #7E1E6F #AF2A9A #D244BC #DE75CD

Accessibility & contrast

On white

5.80
#AF2A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF2A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A9A
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A9A#FFFFFF#000000##FFFFFF
##AF2A9A1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599D
Deuteranopia (green-blind)
#5B6C97
Tritanopia (blue-blind)
#B83560
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a9a;
/* rgb */ color: rgb(175, 42, 154);
/* oklch */ color: oklch(53.5% 0.204 335.4);
Tailwind
colors: {
  custom: {
    50: '#cb72b8',
    500: '#af2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9a;
$custom-light: #cb72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9a",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 309.474,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53505,
    "c": 0.20439,
    "h": 335.4
  },
  "luminance": 0.13103
}

Semantic roles & 50–950 ramp

primary
#AF2A9A
secondary
#6FC67D
accent
#E45D43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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