#AF3A8B#AF3A8B

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

Color values

HEX#AF3A8B
RGBrgb(175, 58, 139)
HSLhsl(318, 50%, 46%)
HSVhsv(318, 67%, 69%)
CMYKcmyk(0%, 66.9%, 20.6%, 31.4%)
CIE-LABlab(44.24, 55.72, -20.00)
CIE-LCHlch(44.24, 59.20, 340.25°)
OKLaboklab(54.24% 0.1668 -0.0536)
OKLCHoklch(54.24% 0.175 342.2)
XYZxyz(23.8532, 14.0064, 25.8684)
Luminance0.1400 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A8B #3AAF5E
analogous
#993AAF #AF3A8B #AF3A50
triadic
#AF3A8B #8BAF3A #3A8BAF
tetradic
#AF3A8B #AF993A #3AAF5E #3A50AF
square
#AF3A8B #AF993A #3AAF5E #3A50AF
split-complementary
#AF3A8B #50AF3A #3AAF99
monochromatic
#531C42 #812B66 #AF3A8B #C95DA8 #D98BC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF3A8B#FFFFFF#000000##FFFFFF
##AF3A8B1.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)
#435C8D
Deuteranopia (green-blind)
#677088
Tritanopia (blue-blind)
#BA3B5D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3a8b;
/* rgb */ color: rgb(175, 58, 139);
/* oklch */ color: oklch(54.2% 0.175 342.2);
Tailwind
colors: {
  custom: {
    50: '#ca79ad',
    500: '#af3a8b',
    950: '#000000',
  },
}
SCSS
$custom: #af3a8b;
$custom-light: #ca79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a8b",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 139
  },
  "hsl": {
    "h": 318.462,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54239,
    "c": 0.17517,
    "h": 342.2
  },
  "luminance": 0.14004
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF3A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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