#AF27A5#AF27A5

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

Color values

HEX#AF27A5
RGBrgb(175, 39, 165)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 77.7%, 5.7%, 31.4%)
CIE-LABlab(43.19, 66.08, -37.30)
CIE-LCHlch(43.19, 75.88, 330.56°)
OKLaboklab(53.88% 0.1889 -0.1028)
OKLCHoklch(53.88% 0.215 331.4)
XYZxyz(25.1963, 13.2837, 36.8270)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A5 #27AF31
analogous
#7527AF #AF27A5 #AF2761
triadic
#AF27A5 #A5AF27 #27A5AF
tetradic
#AF27A5 #AF7527 #27AF31 #2761AF
square
#AF27A5 #AF7527 #27AF31 #2761AF
split-complementary
#AF27A5 #61AF27 #27AF75
monochromatic
#4B1147 #7D1C76 #AF27A5 #D43FC9 #DF71D7

Accessibility & contrast

On white

5.74
#AF27A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF27A5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A5#FFFFFF#000000##FFFFFF
##AF27A51.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195AA8
Deuteranopia (green-blind)
#546DA2
Tritanopia (blue-blind)
#B63965
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a5;
/* rgb */ color: rgb(175, 39, 165);
/* oklch */ color: oklch(53.9% 0.215 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb71c0',
    500: '#af27a5',
    950: '#000000',
  },
}
SCSS
$custom: #af27a5;
$custom-light: #cb71c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a5",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 304.412,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53881,
    "c": 0.21509,
    "h": 331.4
  },
  "luminance": 0.13282
}

Semantic roles & 50–950 ramp

primary
#AF27A5
secondary
#6BC672
accent
#E74D41
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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