#AF28A1#AF28A1

#AF28A1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.211 H 332.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF28A1
RGBrgb(175, 40, 161)
HSLhsl(306, 63%, 42%)
HSVhsv(306, 77%, 69%)
CMYKcmyk(0%, 77.1%, 8%, 31.4%)
CIE-LABlab(43.07, 65.18, -35.09)
CIE-LCHlch(43.07, 74.03, 331.71°)
OKLaboklab(53.73% 0.188 -0.0964)
OKLCHoklch(53.73% 0.211 332.8)
XYZxyz(24.8712, 13.2069, 34.9506)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A1 #28AF36
analogous
#7928AF #AF28A1 #AF285E
triadic
#AF28A1 #A1AF28 #28A1AF
tetradic
#AF28A1 #AF7928 #28AF36 #285EAF
square
#AF28A1 #AF7928 #28AF36 #285EAF
split-complementary
#AF28A1 #5EAF28 #28AF79
monochromatic
#4B1145 #7D1D73 #AF28A1 #D441C4 #DF73D4

Accessibility & contrast

On white

5.77
#AF28A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF28A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A1#FFFFFF#000000##FFFFFF
##AF28A11.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA4
Deuteranopia (green-blind)
#576C9E
Tritanopia (blue-blind)
#B73763
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af28a1;
/* rgb */ color: rgb(175, 40, 161);
/* oklch */ color: oklch(53.7% 0.211 332.8);
Tailwind
colors: {
  custom: {
    50: '#cb72bd',
    500: '#af28a1',
    950: '#000000',
  },
}
SCSS
$custom: #af28a1;
$custom-light: #cb72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a1",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 306.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5373,
    "c": 0.21129,
    "h": 332.8
  },
  "luminance": 0.13205
}

Semantic roles & 50–950 ramp

primary
#AF28A1
secondary
#6DC676
accent
#E65342
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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