#AF4EAC#AF4EAC

#AF4EAC is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.2% C 0.171 H 328.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF4EAC
RGBrgb(175, 78, 172)
HSLhsl(302, 38%, 50%)
HSVhsv(302, 55%, 69%)
CMYKcmyk(0%, 55.4%, 1.7%, 31.4%)
CIE-LABlab(48.94, 52.19, -32.39)
CIE-LCHlch(48.94, 61.43, 328.17°)
OKLaboklab(58.16% 0.1463 -0.089)
OKLCHoklch(58.16% 0.171 328.7)
XYZxyz(27.8496, 17.5430, 40.9410)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EAC #4EAF51
analogous
#824EAF #AF4EAC #AF4E7B
triadic
#AF4EAC #ACAF4E #4EACAF
tetradic
#AF4EAC #AF824E #4EAF51 #4E7BAF
square
#AF4EAC #AF824E #4EAF51 #4E7BAF
split-complementary
#AF4EAC #7BAF4E #4EAF82
monochromatic
#5A2859 #853B82 #AF4EAC #C378C0 #D6A2D4

Accessibility & contrast

On white

4.66
#AF4EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF4EAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EAC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EAC#FFFFFF#000000##FFFFFF
##AF4EAC1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466CAF
Deuteranopia (green-blind)
#6579A9
Tritanopia (blue-blind)
#B45876
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4eac;
/* rgb */ color: rgb(175, 78, 172);
/* oklch */ color: oklch(58.2% 0.171 328.7);
Tailwind
colors: {
  custom: {
    50: '#c984c5',
    500: '#af4eac',
    950: '#000000',
  },
}
SCSS
$custom: #af4eac;
$custom-light: #c984c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eac",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 301.856,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.17125,
    "h": 328.7
  },
  "luminance": 0.17541
}

Semantic roles & 50–950 ramp

primary
#AF4EAC
secondary
#96C398
accent
#CE5D5A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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