#AF27A6#AF27A6

#AF27A6 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.216 H 331.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF27A6
RGBrgb(175, 39, 166)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 77.7%, 5.1%, 31.4%)
CIE-LABlab(43.24, 66.23, -37.81)
CIE-LCHlch(43.24, 76.26, 330.28°)
OKLaboklab(53.94% 0.1889 -0.1043)
OKLCHoklch(53.94% 0.216 331.1)
XYZxyz(25.2876, 13.3202, 37.3082)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A6 #27AF30
analogous
#7427AF #AF27A6 #AF2762
triadic
#AF27A6 #A6AF27 #27A6AF
tetradic
#AF27A6 #AF7427 #27AF30 #2762AF
square
#AF27A6 #AF7427 #27AF30 #2762AF
split-complementary
#AF27A6 #62AF27 #27AF74
monochromatic
#4B1147 #7D1C77 #AF27A6 #D43FCA #DF71D8

Accessibility & contrast

On white

5.73
#AF27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A6
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A6#FFFFFF#000000##FFFFFF
##AF27A61.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a6;
/* rgb */ color: rgb(175, 39, 166);
/* oklch */ color: oklch(53.9% 0.216 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af27a6',
    950: '#000000',
  },
}
SCSS
$custom: #af27a6;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a6",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 303.971,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53937,
    "c": 0.21581,
    "h": 331.1
  },
  "luminance": 0.13318
}

Semantic roles & 50–950 ramp

primary
#AF27A6
secondary
#6BC671
accent
#E74C41
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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