#AF4DA2#AF4DA2

#AF4DA2 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.164 H 332.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF4DA2
RGBrgb(175, 77, 162)
HSLhsl(308, 39%, 49%)
HSVhsv(308, 56%, 69%)
CMYKcmyk(0%, 56%, 7.4%, 31.4%)
CIE-LABlab(48.30, 50.94, -27.50)
CIE-LCHlch(48.30, 57.88, 331.64°)
OKLaboklab(57.54% 0.1462 -0.0749)
OKLCHoklch(57.54% 0.164 332.9)
XYZxyz(26.8546, 17.0322, 36.0485)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DA2 #4DAF5A
analogous
#8B4DAF #AF4DA2 #AF4D71
triadic
#AF4DA2 #A2AF4D #4DA2AF
tetradic
#AF4DA2 #AF8B4D #4DAF5A #4D71AF
square
#AF4DA2 #AF8B4D #4DAF5A #4D71AF
split-complementary
#AF4DA2 #71AF4D #4DAF8B
monochromatic
#5A2853 #853A7B #AF4DA2 #C376B9 #D6A1CF

Accessibility & contrast

On white

4.77
#AF4DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF4DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DA2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DA2#FFFFFF#000000##FFFFFF
##AF4DA21.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6AA5
Deuteranopia (green-blind)
#68789F
Tritanopia (blue-blind)
#B65470
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4da2;
/* rgb */ color: rgb(175, 77, 162);
/* oklch */ color: oklch(57.5% 0.164 332.9);
Tailwind
colors: {
  custom: {
    50: '#c984be',
    500: '#af4da2',
    950: '#000000',
  },
}
SCSS
$custom: #af4da2;
$custom-light: #c984be;
$custom-dark: #000000;
JSON
{
  "hex": "#af4da2",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 307.959,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57543,
    "c": 0.16426,
    "h": 332.9
  },
  "luminance": 0.1703
}

Semantic roles & 50–950 ramp

primary
#AF4DA2
secondary
#95C39B
accent
#CF6959
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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