#AF27AB#AF27AB

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

Color values

HEX#AF27AB
RGBrgb(175, 39, 171)
HSLhsl(302, 64%, 42%)
HSVhsv(302, 78%, 69%)
CMYKcmyk(0%, 77.7%, 2.3%, 31.4%)
CIE-LABlab(43.52, 67.01, -40.35)
CIE-LCHlch(43.52, 78.22, 328.95°)
OKLaboklab(54.22% 0.1889 -0.1116)
OKLCHoklch(54.22% 0.219 329.4)
XYZxyz(25.7552, 13.5073, 39.7709)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27AB #27AF2B
analogous
#6F27AF #AF27AB #AF2767
triadic
#AF27AB #ABAF27 #27ABAF
tetradic
#AF27AB #AF6F27 #27AF2B #2767AF
square
#AF27AB #AF6F27 #27AF2B #2767AF
split-complementary
#AF27AB #67AF27 #27AF6F
monochromatic
#4B1149 #7D1C7A #AF27AB #D43FD0 #DF71DC

Accessibility & contrast

On white

5.67
#AF27AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF27AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27AB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27AB#FFFFFF#000000##FFFFFF
##AF27AB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af27ab;
/* rgb */ color: rgb(175, 39, 171);
/* oklch */ color: oklch(54.2% 0.219 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c4',
    500: '#af27ab',
    950: '#000000',
  },
}
SCSS
$custom: #af27ab;
$custom-light: #cb72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af27ab",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 301.765,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54223,
    "c": 0.21945,
    "h": 329.4
  },
  "luminance": 0.13505
}

Semantic roles & 50–950 ramp

primary
#AF27AB
secondary
#6BC66E
accent
#E74641
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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