#AF4EAB#AF4EAB

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

Color values

HEX#AF4EAB
RGBrgb(175, 78, 171)
HSLhsl(302, 38%, 50%)
HSVhsv(302, 55%, 69%)
CMYKcmyk(0%, 55.4%, 2.3%, 31.4%)
CIE-LABlab(48.89, 52.02, -31.88)
CIE-LCHlch(48.89, 61.01, 328.50°)
OKLaboklab(58.11% 0.1462 -0.0875)
OKLCHoklch(58.11% 0.17 329.1)
XYZxyz(27.7540, 17.5048, 40.4371)
Luminance0.1750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EAB #4EAF52
analogous
#834EAF #AF4EAB #AF4E7B
triadic
#AF4EAB #ABAF4E #4EABAF
tetradic
#AF4EAB #AF834E #4EAF52 #4E7BAF
square
#AF4EAB #AF834E #4EAF52 #4E7BAF
split-complementary
#AF4EAB #7BAF4E #4EAF83
monochromatic
#5A2858 #853B82 #AF4EAB #C378C0 #D6A2D3

Accessibility & contrast

On white

4.67
#AF4EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF4EAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EAB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EAB#FFFFFF#000000##FFFFFF
##AF4EAB1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466CAE
Deuteranopia (green-blind)
#6579A8
Tritanopia (blue-blind)
#B55875
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4eab;
/* rgb */ color: rgb(175, 78, 171);
/* oklch */ color: oklch(58.1% 0.170 329.1);
Tailwind
colors: {
  custom: {
    50: '#c984c4',
    500: '#af4eab',
    950: '#000000',
  },
}
SCSS
$custom: #af4eab;
$custom-light: #c984c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eab",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 302.474,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58112,
    "c": 0.17037,
    "h": 329.1
  },
  "luminance": 0.17503
}

Semantic roles & 50–950 ramp

primary
#AF4EAB
secondary
#96C398
accent
#CE5E5A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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