#AF27AE#AF27AE

#AF27AE is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.222 H 328.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF27AE
RGBrgb(175, 39, 174)
HSLhsl(300, 64%, 42%)
HSVhsv(300, 78%, 69%)
CMYKcmyk(0%, 77.7%, 0.6%, 31.4%)
CIE-LABlab(43.69, 67.49, -41.86)
CIE-LCHlch(43.69, 79.41, 328.19°)
OKLaboklab(54.4% 0.1889 -0.116)
OKLCHoklch(54.4% 0.222 328.4)
XYZxyz(26.0444, 13.6230, 41.2939)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27AE #27AF28
analogous
#6C27AF #AF27AE #AF276A
triadic
#AF27AE #AEAF27 #27AEAF
tetradic
#AF27AE #AF6C27 #27AF28 #276AAF
square
#AF27AE #AF6C27 #27AF28 #276AAF
split-complementary
#AF27AE #6AAF27 #27AF6C
monochromatic
#4B114A #7D1C7C #AF27AE #D43FD3 #DF71DF

Accessibility & contrast

On white

5.64
#AF27AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF27AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27AE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27AE#FFFFFF#000000##FFFFFF
##AF27AE1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#4F6DAB
Tritanopia (blue-blind)
#B53E6A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af27ae;
/* rgb */ color: rgb(175, 39, 174);
/* oklch */ color: oklch(54.4% 0.222 328.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c7',
    500: '#af27ae',
    950: '#000000',
  },
}
SCSS
$custom: #af27ae;
$custom-light: #cb72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af27ae",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 300.441,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54399,
    "c": 0.22167,
    "h": 328.4
  },
  "luminance": 0.13621
}

Semantic roles & 50–950 ramp

primary
#AF27AE
secondary
#6BC66C
accent
#E74241
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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