#AF27AA#AF27AA

#AF27AA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.219 H 329.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF27AA
RGBrgb(175, 39, 170)
HSLhsl(302, 64%, 42%)
HSVhsv(302, 78%, 69%)
CMYKcmyk(0%, 77.7%, 2.9%, 31.4%)
CIE-LABlab(43.46, 66.85, -39.84)
CIE-LCHlch(43.46, 77.83, 329.21°)
OKLaboklab(54.17% 0.1889 -0.1102)
OKLCHoklch(54.17% 0.219 329.8)
XYZxyz(25.6603, 13.4693, 39.2708)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27AA #27AF2C
analogous
#7027AF #AF27AA #AF2766
triadic
#AF27AA #AAAF27 #27AAAF
tetradic
#AF27AA #AF7027 #27AF2C #2766AF
square
#AF27AA #AF7027 #27AF2C #2766AF
split-complementary
#AF27AA #66AF27 #27AF70
monochromatic
#4B1149 #7D1C79 #AF27AA #D43FCF #DF71DB

Accessibility & contrast

On white

5.69
#AF27AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF27AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27AA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27AA#FFFFFF#000000##FFFFFF
##AF27AA1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5BAD
Deuteranopia (green-blind)
#516DA7
Tritanopia (blue-blind)
#B53C68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af27aa;
/* rgb */ color: rgb(175, 39, 170);
/* oklch */ color: oklch(54.2% 0.219 329.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c4',
    500: '#af27aa',
    950: '#000000',
  },
}
SCSS
$custom: #af27aa;
$custom-light: #cb72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af27aa",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 302.206,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54166,
    "c": 0.21872,
    "h": 329.8
  },
  "luminance": 0.13467
}

Semantic roles & 50–950 ramp

primary
#AF27AA
secondary
#6BC66F
accent
#E74741
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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