#AF27A4#AF27A4

#AF27A4 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.214 H 331.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF27A4
RGBrgb(175, 39, 164)
HSLhsl(305, 64%, 42%)
HSVhsv(305, 78%, 69%)
CMYKcmyk(0%, 77.7%, 6.3%, 31.4%)
CIE-LABlab(43.13, 65.92, -36.79)
CIE-LCHlch(43.13, 75.49, 330.84°)
OKLaboklab(53.83% 0.1889 -0.1013)
OKLCHoklch(53.83% 0.214 331.8)
XYZxyz(25.1056, 13.2474, 36.3495)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A4 #27AF32
analogous
#7627AF #AF27A4 #AF2760
triadic
#AF27A4 #A4AF27 #27A4AF
tetradic
#AF27A4 #AF7627 #27AF32 #2760AF
square
#AF27A4 #AF7627 #27AF32 #2760AF
split-complementary
#AF27A4 #60AF27 #27AF76
monochromatic
#4B1146 #7D1C75 #AF27A4 #D43FC8 #DF71D6

Accessibility & contrast

On white

5.76
#AF27A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF27A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A4#FFFFFF#000000##FFFFFF
##AF27A41.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#556CA1
Tritanopia (blue-blind)
#B63865
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a4;
/* rgb */ color: rgb(175, 39, 164);
/* oklch */ color: oklch(53.8% 0.214 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bf',
    500: '#af27a4',
    950: '#000000',
  },
}
SCSS
$custom: #af27a4;
$custom-light: #cb71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a4",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 304.853,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53825,
    "c": 0.21437,
    "h": 331.8
  },
  "luminance": 0.13245
}

Semantic roles & 50–950 ramp

primary
#AF27A4
secondary
#6BC673
accent
#E74F41
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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