#AF27A8#AF27A8

#AF27A8 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.217 H 330.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF27A8
RGBrgb(175, 39, 168)
HSLhsl(303, 64%, 42%)
HSVhsv(303, 78%, 69%)
CMYKcmyk(0%, 77.7%, 4%, 31.4%)
CIE-LABlab(43.35, 66.54, -38.83)
CIE-LCHlch(43.35, 77.04, 329.73°)
OKLaboklab(54.05% 0.189 -0.1072)
OKLCHoklch(54.05% 0.217 330.4)
XYZxyz(25.4725, 13.3942, 38.2819)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A8 #27AF2E
analogous
#7227AF #AF27A8 #AF2764
triadic
#AF27A8 #A8AF27 #27A8AF
tetradic
#AF27A8 #AF7227 #27AF2E #2764AF
square
#AF27A8 #AF7227 #27AF2E #2764AF
split-complementary
#AF27A8 #64AF27 #27AF72
monochromatic
#4B1148 #7D1C78 #AF27A8 #D43FCD #DF71DA

Accessibility & contrast

On white

5.71
#AF27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A8#FFFFFF#000000##FFFFFF
##AF27A81.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135BAB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#B63B67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a8;
/* rgb */ color: rgb(175, 39, 168);
/* oklch */ color: oklch(54.1% 0.217 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb72c2',
    500: '#af27a8',
    950: '#000000',
  },
}
SCSS
$custom: #af27a8;
$custom-light: #cb72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a8",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 303.088,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54051,
    "c": 0.21726,
    "h": 330.4
  },
  "luminance": 0.13392
}

Semantic roles & 50–950 ramp

primary
#AF27A8
secondary
#6BC670
accent
#E74A41
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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