#AF2A94#AF2A94

#AF2A94 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.2% C 0.200 H 337.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF2A94
RGBrgb(175, 42, 148)
HSLhsl(312, 61%, 43%)
HSVhsv(312, 76%, 69%)
CMYKcmyk(0%, 76%, 15.4%, 31.4%)
CIE-LABlab(42.63, 62.68, -27.96)
CIE-LCHlch(42.63, 68.63, 335.96°)
OKLaboklab(53.2% 0.1853 -0.076)
OKLCHoklch(53.2% 0.2 337.7)
XYZxyz(23.8530, 12.9103, 29.2469)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A94 #2AAF45
analogous
#872AAF #AF2A94 #AF2A52
triadic
#AF2A94 #94AF2A #2A94AF
tetradic
#AF2A94 #AF872A #2AAF45 #2A52AF
square
#AF2A94 #AF872A #2AAF45 #2A52AF
split-complementary
#AF2A94 #52AF2A #2AAF87
monochromatic
#4C1241 #7E1E6A #AF2A94 #D244B5 #DE75C9

Accessibility & contrast

On white

5.86
#AF2A94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF2A94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A94
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A94#FFFFFF#000000##FFFFFF
##AF2A941.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5897
Deuteranopia (green-blind)
#5D6C91
Tritanopia (blue-blind)
#B9325C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a94;
/* rgb */ color: rgb(175, 42, 148);
/* oklch */ color: oklch(53.2% 0.200 337.7);
Tailwind
colors: {
  custom: {
    50: '#cb72b3',
    500: '#af2a94',
    950: '#000000',
  },
}
SCSS
$custom: #af2a94;
$custom-light: #cb72b3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a94",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 312.18,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53198,
    "c": 0.20028,
    "h": 337.7
  },
  "luminance": 0.12908
}

Semantic roles & 50–950 ramp

primary
#AF2A94
secondary
#6FC681
accent
#E46443
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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