#AF28A6#AF28A6

#AF28A6 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.215 H 331.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF28A6
RGBrgb(175, 40, 166)
HSLhsl(304, 63%, 42%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 77.1%, 5.1%, 31.4%)
CIE-LABlab(43.34, 65.95, -37.65)
CIE-LCHlch(43.34, 75.94, 330.27°)
OKLaboklab(54.01% 0.1881 -0.1038)
OKLCHoklch(54.01% 0.215 331.1)
XYZxyz(25.3209, 13.3868, 37.3193)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A6 #28AF31
analogous
#7528AF #AF28A6 #AF2863
triadic
#AF28A6 #A6AF28 #28A6AF
tetradic
#AF28A6 #AF7528 #28AF31 #2863AF
square
#AF28A6 #AF7528 #28AF31 #2863AF
split-complementary
#AF28A6 #63AF28 #28AF75
monochromatic
#4B1147 #7D1D77 #AF28A6 #D441CA #DF73D8

Accessibility & contrast

On white

5.71
#AF28A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF28A6
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A6#FFFFFF#000000##FFFFFF
##AF28A61.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195BA9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#B63A66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af28a6;
/* rgb */ color: rgb(175, 40, 166);
/* oklch */ color: oklch(54.0% 0.215 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c1',
    500: '#af28a6',
    950: '#000000',
  },
}
SCSS
$custom: #af28a6;
$custom-light: #cb72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a6",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 304,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.21488,
    "h": 331.1
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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