#AF27A0#AF27A0

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

Color values

HEX#AF27A0
RGBrgb(175, 39, 160)
HSLhsl(307, 64%, 42%)
HSVhsv(307, 78%, 69%)
CMYKcmyk(0%, 77.7%, 8.6%, 31.4%)
CIE-LABlab(42.92, 65.32, -34.73)
CIE-LCHlch(42.92, 73.98, 332.00°)
OKLaboklab(53.61% 0.1888 -0.0954)
OKLCHoklch(53.61% 0.212 333.2)
XYZxyz(24.7501, 13.1052, 34.4769)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A0 #27AF36
analogous
#7A27AF #AF27A0 #AF275C
triadic
#AF27A0 #A0AF27 #27A0AF
tetradic
#AF27A0 #AF7A27 #27AF36 #275CAF
square
#AF27A0 #AF7A27 #27AF36 #275CAF
split-complementary
#AF27A0 #5CAF27 #27AF7A
monochromatic
#4B1144 #7D1C72 #AF27A0 #D43FC4 #DF71D3

Accessibility & contrast

On white

5.80
#AF27A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF27A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A0
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A0#FFFFFF#000000##FFFFFF
##AF27A01.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A3
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#B73662
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af27a0;
/* rgb */ color: rgb(175, 39, 160);
/* oklch */ color: oklch(53.6% 0.212 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb71bc',
    500: '#af27a0',
    950: '#000000',
  },
}
SCSS
$custom: #af27a0;
$custom-light: #cb71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a0",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 306.618,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53605,
    "c": 0.21152,
    "h": 333.2
  },
  "luminance": 0.13103
}

Semantic roles & 50–950 ramp

primary
#AF27A0
secondary
#6BC676
accent
#E75341
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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