#AF47AC#AF47AC

#AF47AC is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.3% C 0.182 H 328.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF47AC
RGBrgb(175, 71, 172)
HSLhsl(302, 42%, 48%)
HSVhsv(302, 59%, 69%)
CMYKcmyk(0%, 59.4%, 1.7%, 31.4%)
CIE-LABlab(47.75, 55.41, -34.25)
CIE-LCHlch(47.75, 65.15, 328.28°)
OKLaboklab(57.29% 0.1555 -0.0942)
OKLCHoklch(57.29% 0.182 328.8)
XYZxyz(27.3785, 16.6008, 40.7839)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47AC #47AF4A
analogous
#7E47AF #AF47AC #AF4778
triadic
#AF47AC #ACAF47 #47ACAF
tetradic
#AF47AC #AF7E47 #47AF4A #4778AF
square
#AF47AC #AF7E47 #47AF4A #4778AF
split-complementary
#AF47AC #78AF47 #47AF7E
monochromatic
#582456 #833581 #AF47AC #C46FC2 #D69AD4

Accessibility & contrast

On white

4.86
#AF47AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF47AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47AC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47AC#FFFFFF#000000##FFFFFF
##AF47AC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AF
Deuteranopia (green-blind)
#6076A9
Tritanopia (blue-blind)
#B55373
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af47ac;
/* rgb */ color: rgb(175, 71, 172);
/* oklch */ color: oklch(57.3% 0.182 328.8);
Tailwind
colors: {
  custom: {
    50: '#ca81c5',
    500: '#af47ac',
    950: '#000000',
  },
}
SCSS
$custom: #af47ac;
$custom-light: #ca81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af47ac",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 301.731,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57295,
    "c": 0.1818,
    "h": 328.8
  },
  "luminance": 0.16599
}

Semantic roles & 50–950 ramp

primary
#AF47AC
secondary
#8FC291
accent
#D25956
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF47AC

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

Preview Lab → · Contrast checker → · Palette generator →

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