#AF27A1#AF27A1

#AF27A1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.212 H 332.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF27A1
RGBrgb(175, 39, 161)
HSLhsl(306, 64%, 42%)
HSVhsv(306, 78%, 69%)
CMYKcmyk(0%, 77.7%, 8%, 31.4%)
CIE-LABlab(42.97, 65.47, -35.25)
CIE-LCHlch(42.97, 74.35, 331.70°)
OKLaboklab(53.66% 0.1888 -0.0969)
OKLCHoklch(53.66% 0.212 332.8)
XYZxyz(24.8379, 13.1403, 34.9395)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A1 #27AF35
analogous
#7927AF #AF27A1 #AF275D
triadic
#AF27A1 #A1AF27 #27A1AF
tetradic
#AF27A1 #AF7927 #27AF35 #275DAF
square
#AF27A1 #AF7927 #27AF35 #275DAF
split-complementary
#AF27A1 #5DAF27 #27AF79
monochromatic
#4B1145 #7D1C73 #AF27A1 #D43FC5 #DF71D4

Accessibility & contrast

On white

5.79
#AF27A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF27A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A1
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A1#FFFFFF#000000##FFFFFF
##AF27A11.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#B73763
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af27a1;
/* rgb */ color: rgb(175, 39, 161);
/* oklch */ color: oklch(53.7% 0.212 332.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bd',
    500: '#af27a1',
    950: '#000000',
  },
}
SCSS
$custom: #af27a1;
$custom-light: #cb71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a1",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 306.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53659,
    "c": 0.21224,
    "h": 332.8
  },
  "luminance": 0.13138
}

Semantic roles & 50–950 ramp

primary
#AF27A1
secondary
#6BC675
accent
#E75241
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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