#AF27AC#AF27AC

#AF27AC is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.220 H 329.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF27AC
RGBrgb(175, 39, 172)
HSLhsl(301, 64%, 42%)
HSVhsv(301, 78%, 69%)
CMYKcmyk(0%, 77.7%, 1.7%, 31.4%)
CIE-LABlab(43.57, 67.17, -40.85)
CIE-LCHlch(43.57, 78.62, 328.69°)
OKLaboklab(54.28% 0.1889 -0.1131)
OKLCHoklch(54.28% 0.22 329.1)
XYZxyz(25.8509, 13.5456, 40.2747)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27AC #27AF2A
analogous
#6E27AF #AF27AC #AF2768
triadic
#AF27AC #ACAF27 #27ACAF
tetradic
#AF27AC #AF6E27 #27AF2A #2768AF
square
#AF27AC #AF6E27 #27AF2A #2768AF
split-complementary
#AF27AC #68AF27 #27AF6E
monochromatic
#4B114A #7D1C7B #AF27AC #D43FD1 #DF71DD

Accessibility & contrast

On white

5.66
#AF27AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF27AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27AC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27AC#FFFFFF#000000##FFFFFF
##AF27AC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075CAF
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#B53D69
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af27ac;
/* rgb */ color: rgb(175, 39, 172);
/* oklch */ color: oklch(54.3% 0.220 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c5',
    500: '#af27ac',
    950: '#000000',
  },
}
SCSS
$custom: #af27ac;
$custom-light: #cb72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af27ac",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 301.324,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54281,
    "c": 0.22019,
    "h": 329.1
  },
  "luminance": 0.13544
}

Semantic roles & 50–950 ramp

primary
#AF27AC
secondary
#6BC66D
accent
#E74541
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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