#AF27A7#AF27A7

#AF27A7 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.217 H 330.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF27A7
RGBrgb(175, 39, 167)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 77.7%, 4.6%, 31.4%)
CIE-LABlab(43.30, 66.38, -38.32)
CIE-LCHlch(43.30, 76.65, 330.00°)
OKLaboklab(53.99% 0.189 -0.1058)
OKLCHoklch(53.99% 0.217 330.8)
XYZxyz(25.3797, 13.3571, 37.7932)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A7 #27AF2F
analogous
#7327AF #AF27A7 #AF2763
triadic
#AF27A7 #A7AF27 #27A7AF
tetradic
#AF27A7 #AF7327 #27AF2F #2763AF
square
#AF27A7 #AF7327 #27AF2F #2763AF
split-complementary
#AF27A7 #63AF27 #27AF73
monochromatic
#4B1147 #7D1C77 #AF27A7 #D43FCB #DF71D9

Accessibility & contrast

On white

5.72
#AF27A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF27A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A7
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A7#FFFFFF#000000##FFFFFF
##AF27A71.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#B63A66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a7;
/* rgb */ color: rgb(175, 39, 167);
/* oklch */ color: oklch(54.0% 0.217 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af27a7',
    950: '#000000',
  },
}
SCSS
$custom: #af27a7;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a7",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 303.529,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53994,
    "c": 0.21654,
    "h": 330.8
  },
  "luminance": 0.13355
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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