#AF27AD#AF27AD

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

Color values

HEX#AF27AD
RGBrgb(175, 39, 173)
HSLhsl(301, 64%, 42%)
HSVhsv(301, 78%, 69%)
CMYKcmyk(0%, 77.7%, 1.1%, 31.4%)
CIE-LABlab(43.63, 67.33, -41.36)
CIE-LCHlch(43.63, 79.01, 328.44°)
OKLaboklab(54.34% 0.1889 -0.1146)
OKLCHoklch(54.34% 0.221 328.8)
XYZxyz(25.9473, 13.5841, 40.7824)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27AD #27AF29
analogous
#6D27AF #AF27AD #AF2769
triadic
#AF27AD #ADAF27 #27ADAF
tetradic
#AF27AD #AF6D27 #27AF29 #2769AF
square
#AF27AD #AF6D27 #27AF29 #2769AF
split-complementary
#AF27AD #69AF27 #27AF6D
monochromatic
#4B114A #7D1C7C #AF27AD #D43FD2 #DF71DE

Accessibility & contrast

On white

5.65
#AF27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27AD
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27AD#FFFFFF#000000##FFFFFF
##AF27AD1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af27ad;
/* rgb */ color: rgb(175, 39, 173);
/* oklch */ color: oklch(54.3% 0.221 328.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c6',
    500: '#af27ad',
    950: '#000000',
  },
}
SCSS
$custom: #af27ad;
$custom-light: #cb72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af27ad",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 300.882,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5434,
    "c": 0.22093,
    "h": 328.8
  },
  "luminance": 0.13582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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