#AF28AD#AF28AD

#AF28AD is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.220 H 328.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF28AD
RGBrgb(175, 40, 173)
HSLhsl(301, 63%, 42%)
HSVhsv(301, 77%, 69%)
CMYKcmyk(0%, 77.1%, 1.1%, 31.4%)
CIE-LABlab(43.73, 67.05, -41.20)
CIE-LCHlch(43.73, 78.69, 328.43°)
OKLaboklab(54.41% 0.1881 -0.1141)
OKLCHoklch(54.41% 0.22 328.8)
XYZxyz(25.9806, 13.6507, 40.7935)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28AD #28AF2A
analogous
#6E28AF #AF28AD #AF286A
triadic
#AF28AD #ADAF28 #28ADAF
tetradic
#AF28AD #AF6E28 #28AF2A #286AAF
square
#AF28AD #AF6E28 #28AF2A #286AAF
split-complementary
#AF28AD #6AAF28 #28AF6E
monochromatic
#4B114B #7D1D7C #AF28AD #D441D1 #DF73DD

Accessibility & contrast

On white

5.63
#AF28AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF28AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28AD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28AD#FFFFFF#000000##FFFFFF
##AF28AD1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075CB1
Deuteranopia (green-blind)
#506DAA
Tritanopia (blue-blind)
#B53E6A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af28ad;
/* rgb */ color: rgb(175, 40, 173);
/* oklch */ color: oklch(54.4% 0.220 328.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c6',
    500: '#af28ad',
    950: '#000000',
  },
}
SCSS
$custom: #af28ad;
$custom-light: #cb72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af28ad",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 300.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54409,
    "c": 0.22002,
    "h": 328.8
  },
  "luminance": 0.13649
}

Semantic roles & 50–950 ramp

primary
#AF28AD
secondary
#6DC66E
accent
#E64442
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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