#AF4AA2#AF4AA2

#AF4AA2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.2% C 0.169 H 332.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF4AA2
RGBrgb(175, 74, 162)
HSLhsl(308, 41%, 49%)
HSVhsv(308, 58%, 69%)
CMYKcmyk(0%, 57.7%, 7.4%, 31.4%)
CIE-LABlab(47.78, 52.34, -28.31)
CIE-LCHlch(47.78, 59.50, 331.60°)
OKLaboklab(57.16% 0.1502 -0.0772)
OKLCHoklch(57.16% 0.169 332.8)
XYZxyz(26.6496, 16.6220, 35.9802)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AA2 #4AAF57
analogous
#8A4AAF #AF4AA2 #AF4A70
triadic
#AF4AA2 #A2AF4A #4AA2AF
tetradic
#AF4AA2 #AF8A4A #4AAF57 #4A70AF
square
#AF4AA2 #AF8A4A #4AAF57 #4A70AF
split-complementary
#AF4AA2 #70AF4A #4AAF8A
monochromatic
#592652 #84387A #AF4AA2 #C473B9 #D69ECF

Accessibility & contrast

On white

4.86
#AF4AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF4AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AA2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AA2#FFFFFF#000000##FFFFFF
##AF4AA21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#66779F
Tritanopia (blue-blind)
#B6526F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4aa2;
/* rgb */ color: rgb(175, 74, 162);
/* oklch */ color: oklch(57.2% 0.169 332.8);
Tailwind
colors: {
  custom: {
    50: '#c982be',
    500: '#af4aa2',
    950: '#000000',
  },
}
SCSS
$custom: #af4aa2;
$custom-light: #c982be;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aa2",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 307.723,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57161,
    "c": 0.16893,
    "h": 332.8
  },
  "luminance": 0.1662
}

Semantic roles & 50–950 ramp

primary
#AF4AA2
secondary
#92C299
accent
#D06757
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF4AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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