#AF27A9#AF27A9

#AF27A9 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.218 H 330.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF27A9
RGBrgb(175, 39, 169)
HSLhsl(303, 64%, 42%)
HSVhsv(303, 78%, 69%)
CMYKcmyk(0%, 77.7%, 3.4%, 31.4%)
CIE-LABlab(43.41, 66.70, -39.34)
CIE-LCHlch(43.41, 77.43, 329.47°)
OKLaboklab(54.11% 0.189 -0.1087)
OKLCHoklch(54.11% 0.218 330.1)
XYZxyz(25.5660, 13.4316, 38.7745)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A9 #27AF2D
analogous
#7127AF #AF27A9 #AF2765
triadic
#AF27A9 #A9AF27 #27A9AF
tetradic
#AF27A9 #AF7127 #27AF2D #2765AF
square
#AF27A9 #AF7127 #27AF2D #2765AF
split-complementary
#AF27A9 #65AF27 #27AF71
monochromatic
#4B1148 #7D1C79 #AF27A9 #D43FCE #DF71DA

Accessibility & contrast

On white

5.70
#AF27A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF27A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A9#FFFFFF#000000##FFFFFF
##AF27A91.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105BAC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#B63B67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af27a9;
/* rgb */ color: rgb(175, 39, 169);
/* oklch */ color: oklch(54.1% 0.218 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c3',
    500: '#af27a9',
    950: '#000000',
  },
}
SCSS
$custom: #af27a9;
$custom-light: #cb72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a9",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 302.647,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54108,
    "c": 0.21799,
    "h": 330.1
  },
  "luminance": 0.1343
}

Semantic roles & 50–950 ramp

primary
#AF27A9
secondary
#6BC66F
accent
#E74941
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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