#AF3A8A#AF3A8A

#AF3A8A is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.2% C 0.175 H 342.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF3A8A
RGBrgb(175, 58, 138)
HSLhsl(319, 50%, 46%)
HSVhsv(319, 67%, 69%)
CMYKcmyk(0%, 66.9%, 21.1%, 31.4%)
CIE-LABlab(44.20, 55.58, -19.46)
CIE-LCHlch(44.20, 58.89, 340.70°)
OKLaboklab(54.2% 0.1666 -0.0521)
OKLCHoklch(54.2% 0.175 342.6)
XYZxyz(23.7804, 13.9773, 25.4853)
Luminance0.1398 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A8A #3AAF5F
analogous
#993AAF #AF3A8A #AF3A4F
triadic
#AF3A8A #8AAF3A #3A8AAF
tetradic
#AF3A8A #AF993A #3AAF5F #3A4FAF
square
#AF3A8A #AF993A #3AAF5F #3A4FAF
split-complementary
#AF3A8A #4FAF3A #3AAF99
monochromatic
#531C42 #812B66 #AF3A8A #C95DA7 #D98BC0

Accessibility & contrast

On white

5.53
#AF3A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF3A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3A8A
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3A8A#FFFFFF#000000##FFFFFF
##AF3A8A1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8C
Deuteranopia (green-blind)
#677087
Tritanopia (blue-blind)
#BA3B5D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3a8a;
/* rgb */ color: rgb(175, 58, 138);
/* oklch */ color: oklch(54.2% 0.175 342.6);
Tailwind
colors: {
  custom: {
    50: '#ca79ac',
    500: '#af3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #af3a8a;
$custom-light: #ca79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a8a",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 318.974,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.17451,
    "h": 342.6
  },
  "luminance": 0.13975
}

Semantic roles & 50–950 ramp

primary
#AF3A8A
secondary
#82C396
accent
#DA7A4E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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