#AF4DAB#AF4DAB

#AF4DAB is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.0% C 0.172 H 329.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF4DAB
RGBrgb(175, 77, 171)
HSLhsl(302, 39%, 49%)
HSVhsv(302, 56%, 69%)
CMYKcmyk(0%, 56%, 2.3%, 31.4%)
CIE-LABlab(48.72, 52.49, -32.15)
CIE-LCHlch(48.72, 61.56, 328.51°)
OKLaboklab(57.98% 0.1475 -0.0883)
OKLCHoklch(57.98% 0.172 329.1)
XYZxyz(27.6835, 17.3637, 40.4136)
Luminance0.1736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DAB #4DAF51
analogous
#824DAF #AF4DAB #AF4D7A
triadic
#AF4DAB #ABAF4D #4DABAF
tetradic
#AF4DAB #AF824D #4DAF51 #4D7AAF
square
#AF4DAB #AF824D #4DAF51 #4D7AAF
split-complementary
#AF4DAB #7AAF4D #4DAF82
monochromatic
#5A2858 #853A81 #AF4DAB #C376C0 #D6A1D3

Accessibility & contrast

On white

4.70
#AF4DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF4DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DAB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DAB#FFFFFF#000000##FFFFFF
##AF4DAB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456BAE
Deuteranopia (green-blind)
#6478A8
Tritanopia (blue-blind)
#B55775
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4dab;
/* rgb */ color: rgb(175, 77, 171);
/* oklch */ color: oklch(58.0% 0.172 329.1);
Tailwind
colors: {
  custom: {
    50: '#c984c4',
    500: '#af4dab',
    950: '#000000',
  },
}
SCSS
$custom: #af4dab;
$custom-light: #c984c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dab",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 302.449,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57984,
    "c": 0.17191,
    "h": 329.1
  },
  "luminance": 0.17362
}

Semantic roles & 50–950 ramp

primary
#AF4DAB
secondary
#95C397
accent
#CF5E59
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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