#AF4AAB#AF4AAB

#AF4AAB is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.6% C 0.176 H 329.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF4AAB
RGBrgb(175, 74, 171)
HSLhsl(302, 41%, 49%)
HSVhsv(302, 58%, 69%)
CMYKcmyk(0%, 57.7%, 2.3%, 31.4%)
CIE-LABlab(48.20, 53.88, -32.96)
CIE-LCHlch(48.20, 63.16, 328.55°)
OKLaboklab(57.61% 0.1515 -0.0906)
OKLCHoklch(57.61% 0.176 329.1)
XYZxyz(27.4784, 16.9536, 40.3452)
Luminance0.1695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AAB #4AAF4E
analogous
#814AAF #AF4AAB #AF4A79
triadic
#AF4AAB #ABAF4A #4AABAF
tetradic
#AF4AAB #AF814A #4AAF4E #4A79AF
square
#AF4AAB #AF814A #4AAF4E #4A79AF
split-complementary
#AF4AAB #79AF4A #4AAF81
monochromatic
#592657 #843881 #AF4AAB #C473C0 #D69ED4

Accessibility & contrast

On white

4.78
#AF4AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF4AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AAB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AAB#FFFFFF#000000##FFFFFF
##AF4AAB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426AAE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#B55574
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4aab;
/* rgb */ color: rgb(175, 74, 171);
/* oklch */ color: oklch(57.6% 0.176 329.1);
Tailwind
colors: {
  custom: {
    50: '#c982c4',
    500: '#af4aab',
    950: '#000000',
  },
}
SCSS
$custom: #af4aab;
$custom-light: #c982c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aab",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 171
  },
  "hsl": {
    "h": 302.376,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.17649,
    "h": 329.1
  },
  "luminance": 0.16952
}

Semantic roles & 50–950 ramp

primary
#AF4AAB
secondary
#92C294
accent
#D05C57
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF4AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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