#AF28A9#AF28A9

#AF28A9 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.217 H 330.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF28A9
RGBrgb(175, 40, 169)
HSLhsl(303, 63%, 42%)
HSVhsv(303, 77%, 69%)
CMYKcmyk(0%, 77.1%, 3.4%, 31.4%)
CIE-LABlab(43.50, 66.41, -39.18)
CIE-LCHlch(43.50, 77.11, 329.46°)
OKLaboklab(54.18% 0.1881 -0.1083)
OKLCHoklch(54.18% 0.217 330.1)
XYZxyz(25.5993, 13.4981, 38.7856)
Luminance0.1350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A9 #28AF2E
analogous
#7228AF #AF28A9 #AF2865
triadic
#AF28A9 #A9AF28 #28A9AF
tetradic
#AF28A9 #AF7228 #28AF2E #2865AF
square
#AF28A9 #AF7228 #28AF2E #2865AF
split-complementary
#AF28A9 #65AF28 #28AF72
monochromatic
#4B1149 #7D1D79 #AF28A9 #D441CD #DF73DA

Accessibility & contrast

On white

5.68
#AF28A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF28A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A9#FFFFFF#000000##FFFFFF
##AF28A91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135BAC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#B63C68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af28a9;
/* rgb */ color: rgb(175, 40, 169);
/* oklch */ color: oklch(54.2% 0.217 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c3',
    500: '#af28a9',
    950: '#000000',
  },
}
SCSS
$custom: #af28a9;
$custom-light: #cb72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a9",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 302.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54178,
    "c": 0.21707,
    "h": 330.1
  },
  "luminance": 0.13496
}

Semantic roles & 50–950 ramp

primary
#AF28A9
secondary
#6DC671
accent
#E64942
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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