#AF4A8A#AF4A8A

#AF4A8A is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.1% C 0.151 H 344.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF4A8A
RGBrgb(175, 74, 138)
HSLhsl(322, 41%, 49%)
HSVhsv(322, 58%, 69%)
CMYKcmyk(0%, 57.7%, 21.1%, 31.4%)
CIE-LABlab(46.78, 48.56, -15.52)
CIE-LCHlch(46.78, 50.98, 342.27°)
OKLaboklab(56.09% 0.1453 -0.0412)
OKLCHoklch(56.09% 0.151 344.2)
XYZxyz(24.7161, 15.8487, 25.7972)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A8A #4AAF6F
analogous
#A24AAF #AF4A8A #AF4A58
triadic
#AF4A8A #8AAF4A #4A8AAF
tetradic
#AF4A8A #AFA24A #4AAF6F #4A58AF
square
#AF4A8A #AFA24A #4AAF6F #4A58AF
split-complementary
#AF4A8A #58AF4A #4AAFA2
monochromatic
#592646 #843868 #AF4A8A #C473A6 #D69EC1

Accessibility & contrast

On white

5.04
#AF4A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF4A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A8A
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A8A#FFFFFF#000000##FFFFFF
##AF4A8A1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648C
Deuteranopia (green-blind)
#6F7587
Tritanopia (blue-blind)
#B94A64
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4a8a;
/* rgb */ color: rgb(175, 74, 138);
/* oklch */ color: oklch(56.1% 0.151 344.2);
Tailwind
colors: {
  custom: {
    50: '#ca81ac',
    500: '#af4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #af4a8a;
$custom-light: #ca81ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a8a",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 321.98,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.15102,
    "h": 344.2
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#AF4A8A
secondary
#92C2A4
accent
#D08457
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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