#AF28AE#AF28AE

#AF28AE is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.221 H 328.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF28AE
RGBrgb(175, 40, 174)
HSLhsl(300, 63%, 42%)
HSVhsv(300, 77%, 69%)
CMYKcmyk(0%, 77.1%, 0.6%, 31.4%)
CIE-LABlab(43.78, 67.21, -41.70)
CIE-LCHlch(43.78, 79.10, 328.18°)
OKLaboklab(54.47% 0.1881 -0.1156)
OKLCHoklch(54.47% 0.221 328.4)
XYZxyz(26.0777, 13.6895, 41.3050)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28AE #28AF29
analogous
#6C28AF #AF28AE #AF286B
triadic
#AF28AE #AEAF28 #28AEAF
tetradic
#AF28AE #AF6C28 #28AF29 #286BAF
square
#AF28AE #AF6C28 #28AF29 #286BAF
split-complementary
#AF28AE #6BAF28 #28AF6C
monochromatic
#4B114B #7D1D7C #AF28AE #D441D2 #DF73DE

Accessibility & contrast

On white

5.62
#AF28AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF28AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28AE
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28AE#FFFFFF#000000##FFFFFF
##AF28AE1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035CB2
Deuteranopia (green-blind)
#506DAB
Tritanopia (blue-blind)
#B53E6A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af28ae;
/* rgb */ color: rgb(175, 40, 174);
/* oklch */ color: oklch(54.5% 0.221 328.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c7',
    500: '#af28ae',
    950: '#000000',
  },
}
SCSS
$custom: #af28ae;
$custom-light: #cb72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af28ae",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 300.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54468,
    "c": 0.22076,
    "h": 328.4
  },
  "luminance": 0.13688
}

Semantic roles & 50–950 ramp

primary
#AF28AE
secondary
#6DC66D
accent
#E64342
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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