#AF28AC#AF28AC

#AF28AC is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.219 H 329.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF28AC
RGBrgb(175, 40, 172)
HSLhsl(301, 63%, 42%)
HSVhsv(301, 77%, 69%)
CMYKcmyk(0%, 77.1%, 1.7%, 31.4%)
CIE-LABlab(43.67, 66.89, -40.70)
CIE-LCHlch(43.67, 78.30, 328.68°)
OKLaboklab(54.35% 0.1881 -0.1127)
OKLCHoklch(54.35% 0.219 329.1)
XYZxyz(25.8842, 13.6121, 40.2858)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28AC #28AF2B
analogous
#6E28AF #AF28AC #AF2869
triadic
#AF28AC #ACAF28 #28ACAF
tetradic
#AF28AC #AF6E28 #28AF2B #2869AF
square
#AF28AC #AF6E28 #28AF2B #2869AF
split-complementary
#AF28AC #69AF28 #28AF6E
monochromatic
#4B114A #7D1D7B #AF28AC #D441D0 #DF73DC

Accessibility & contrast

On white

5.64
#AF28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28AC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28AC#FFFFFF#000000##FFFFFF
##AF28AC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5CAF
Deuteranopia (green-blind)
#516DA9
Tritanopia (blue-blind)
#B53D69
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af28ac;
/* rgb */ color: rgb(175, 40, 172);
/* oklch */ color: oklch(54.4% 0.219 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c5',
    500: '#af28ac',
    950: '#000000',
  },
}
SCSS
$custom: #af28ac;
$custom-light: #cb72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af28ac",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 301.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54351,
    "c": 0.21927,
    "h": 329.1
  },
  "luminance": 0.1361
}

Semantic roles & 50–950 ramp

primary
#AF28AC
secondary
#6DC66F
accent
#E64642
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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