#AF4AB2#AF4AB2

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

Color values

HEX#AF4AB2
RGBrgb(175, 74, 178)
HSLhsl(298, 41%, 49%)
HSVhsv(298, 58%, 70%)
CMYKcmyk(1.7%, 58.4%, 0%, 30.2%)
CIE-LABlab(48.55, 55.12, -36.52)
CIE-LCHlch(48.55, 66.13, 326.47°)
OKLaboklab(57.97% 0.1522 -0.1008)
OKLCHoklch(57.97% 0.183 326.5)
XYZxyz(28.1633, 17.2276, 43.9527)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AB2 #4DB24A
analogous
#7B4AB2 #AF4AB2 #B24A81
triadic
#AF4AB2 #B2AF4A #4AB2AF
tetradic
#AF4AB2 #B27B4A #4DB24A #4A81B2
square
#AF4AB2 #B27B4A #4DB24A #4A81B2
split-complementary
#AF4AB2 #81B24A #4AB27B
monochromatic
#5A265C #853887 #AF4AB2 #C374C5 #D69FD7

Accessibility & contrast

On white

4.72
#AF4AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF4AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AB2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AB2#FFFFFF#000000##FFFFFF
##AF4AB21.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#B35777
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4ab2;
/* rgb */ color: rgb(175, 74, 178);
/* oklch */ color: oklch(58.0% 0.183 326.5);
Tailwind
colors: {
  custom: {
    50: '#ca82c9',
    500: '#af4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ab2;
$custom-light: #ca82c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ab2",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 298.269,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57971,
    "c": 0.18259,
    "h": 326.5
  },
  "luminance": 0.17226
}

Semantic roles & 50–950 ramp

primary
#AF4AB2
secondary
#95C494
accent
#D1575A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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