#AF28A7#AF28A7

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

Color values

HEX#AF28A7
RGBrgb(175, 40, 167)
HSLhsl(304, 63%, 42%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 77.1%, 4.6%, 31.4%)
CIE-LABlab(43.39, 66.10, -38.16)
CIE-LCHlch(43.39, 76.33, 330.00°)
OKLaboklab(54.06% 0.1881 -0.1053)
OKLCHoklch(54.06% 0.216 330.8)
XYZxyz(25.4130, 13.4236, 37.8043)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A7 #28AF30
analogous
#7428AF #AF28A7 #AF2863
triadic
#AF28A7 #A7AF28 #28A7AF
tetradic
#AF28A7 #AF7428 #28AF30 #2863AF
square
#AF28A7 #AF7428 #28AF30 #2863AF
split-complementary
#AF28A7 #63AF28 #28AF74
monochromatic
#4B1148 #7D1D77 #AF28A7 #D441CB #DF73D8

Accessibility & contrast

On white

5.70
#AF28A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF28A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A7
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A7#FFFFFF#000000##FFFFFF
##AF28A71.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#B63B66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af28a7;
/* rgb */ color: rgb(175, 40, 167);
/* oklch */ color: oklch(54.1% 0.216 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c1',
    500: '#af28a7',
    950: '#000000',
  },
}
SCSS
$custom: #af28a7;
$custom-light: #cb72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a7",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 303.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.2156,
    "h": 330.8
  },
  "luminance": 0.13422
}

Semantic roles & 50–950 ramp

primary
#AF28A7
secondary
#6DC672
accent
#E64C42
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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