#AF28A8#AF28A8

#AF28A8 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.216 H 330.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF28A8
RGBrgb(175, 40, 168)
HSLhsl(303, 63%, 42%)
HSVhsv(303, 77%, 69%)
CMYKcmyk(0%, 77.1%, 4%, 31.4%)
CIE-LABlab(43.45, 66.26, -38.67)
CIE-LCHlch(43.45, 76.72, 329.73°)
OKLaboklab(54.12% 0.1881 -0.1068)
OKLCHoklch(54.12% 0.216 330.4)
XYZxyz(25.5058, 13.4607, 38.2930)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A8 #28AF2F
analogous
#7328AF #AF28A8 #AF2865
triadic
#AF28A8 #A8AF28 #28A8AF
tetradic
#AF28A8 #AF7328 #28AF2F #2865AF
square
#AF28A8 #AF7328 #28AF2F #2865AF
split-complementary
#AF28A8 #65AF28 #28AF73
monochromatic
#4B1148 #7D1D78 #AF28A8 #D441CC #DF73D9

Accessibility & contrast

On white

5.69
#AF28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A8#FFFFFF#000000##FFFFFF
##AF28A81.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155BAB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#B63B67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af28a8;
/* rgb */ color: rgb(175, 40, 168);
/* oklch */ color: oklch(54.1% 0.216 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c2',
    500: '#af28a8',
    950: '#000000',
  },
}
SCSS
$custom: #af28a8;
$custom-light: #cb72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a8",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 303.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54121,
    "c": 0.21634,
    "h": 330.4
  },
  "luminance": 0.13459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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