#AF2A8A#AF2A8A

#AF2A8A is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.194 H 341.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF2A8A
RGBrgb(175, 42, 138)
HSLhsl(317, 61%, 43%)
HSVhsv(317, 76%, 69%)
CMYKcmyk(0%, 76%, 21.1%, 31.4%)
CIE-LABlab(42.17, 61.30, -22.60)
CIE-LCHlch(42.17, 65.33, 339.76°)
OKLaboklab(52.71% 0.184 -0.0608)
OKLCHoklch(52.71% 0.194 341.7)
XYZxyz(23.0954, 12.6072, 25.2570)
Luminance0.1260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A8A #2AAF4F
analogous
#922AAF #AF2A8A #AF2A47
triadic
#AF2A8A #8AAF2A #2A8AAF
tetradic
#AF2A8A #AF922A #2AAF4F #2A47AF
square
#AF2A8A #AF922A #2AAF4F #2A47AF
split-complementary
#AF2A8A #47AF2A #2AAF92
monochromatic
#4C123C #7E1E63 #AF2A8A #D244AB #DE75C1

Accessibility & contrast

On white

5.96
#AF2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF2A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A8A
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A8A#FFFFFF#000000##FFFFFF
##AF2A8A1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#616B87
Tritanopia (blue-blind)
#BA2C57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a8a;
/* rgb */ color: rgb(175, 42, 138);
/* oklch */ color: oklch(52.7% 0.194 341.7);
Tailwind
colors: {
  custom: {
    50: '#cb71ac',
    500: '#af2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #af2a8a;
$custom-light: #cb71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a8a",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 316.692,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52713,
    "c": 0.19377,
    "h": 341.7
  },
  "luminance": 0.12605
}

Semantic roles & 50–950 ramp

primary
#AF2A8A
secondary
#6FC687
accent
#E47043
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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