#AF28A5#AF28A5

#AF28A5 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.214 H 331.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF28A5
RGBrgb(175, 40, 165)
HSLhsl(304, 63%, 42%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 77.1%, 5.7%, 31.4%)
CIE-LABlab(43.29, 65.79, -37.14)
CIE-LCHlch(43.29, 75.55, 330.55°)
OKLaboklab(53.95% 0.1881 -0.1024)
OKLCHoklch(53.95% 0.214 331.4)
XYZxyz(25.2295, 13.3502, 36.8381)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A5 #28AF32
analogous
#7528AF #AF28A5 #AF2862
triadic
#AF28A5 #A5AF28 #28A5AF
tetradic
#AF28A5 #AF7528 #28AF32 #2862AF
square
#AF28A5 #AF7528 #28AF32 #2862AF
split-complementary
#AF28A5 #62AF28 #28AF75
monochromatic
#4B1147 #7D1D76 #AF28A5 #D441C9 #DF73D7

Accessibility & contrast

On white

5.72
#AF28A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF28A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A5#FFFFFF#000000##FFFFFF
##AF28A51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#B63A65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af28a5;
/* rgb */ color: rgb(175, 40, 165);
/* oklch */ color: oklch(54.0% 0.214 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c0',
    500: '#af28a5',
    950: '#000000',
  },
}
SCSS
$custom: #af28a5;
$custom-light: #cb72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a5",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 304.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53952,
    "c": 0.21416,
    "h": 331.4
  },
  "luminance": 0.13348
}

Semantic roles & 50–950 ramp

primary
#AF28A5
secondary
#6DC673
accent
#E64E42
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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