#AF28B4#AF28B4

#AF28B4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.225 H 326.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF28B4
RGBrgb(175, 40, 180)
HSLhsl(298, 64%, 43%)
HSVhsv(298, 78%, 71%)
CMYKcmyk(2.8%, 77.8%, 0%, 29.4%)
CIE-LABlab(44.13, 68.18, -44.70)
CIE-LCHlch(44.13, 81.53, 326.75°)
OKLaboklab(54.83% 0.1879 -0.1243)
OKLCHoklch(54.83% 0.225 326.5)
XYZxyz(26.6757, 13.9287, 44.4547)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28B4 #2DB428
analogous
#6928B4 #AF28B4 #B42873
triadic
#AF28B4 #B4AF28 #28B4AF
tetradic
#AF28B4 #B46928 #2DB428 #2873B4
square
#AF28B4 #B46928 #2DB428 #2873B4
split-complementary
#AF28B4 #73B428 #28B469
monochromatic
#4E1250 #7E1D82 #AF28B4 #D044D5 #DD76E1

Accessibility & contrast

On white

5.55
#AF28B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF28B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28B4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28B4#FFFFFF#000000##FFFFFF
##AF28B41.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#B4416E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28b4;
/* rgb */ color: rgb(175, 40, 180);
/* oklch */ color: oklch(54.8% 0.225 326.5);
Tailwind
colors: {
  custom: {
    50: '#cb72cb',
    500: '#af28b4',
    950: '#000000',
  },
}
SCSS
$custom: #af28b4;
$custom-light: #cb72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af28b4",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 297.857,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54825,
    "c": 0.22526,
    "h": 326.5
  },
  "luminance": 0.13927
}

Semantic roles & 50–950 ramp

primary
#AF28B4
secondary
#73C870
accent
#E74147
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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