#AF7FAC#AF7FAC

#AF7FAC is a light, moderate purple. Relative luminance 0.273; OKLCH L 65.9% C 0.085 H 328.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF7FAC
RGBrgb(175, 127, 172)
HSLhsl(304, 23%, 59%)
HSVhsv(304, 27%, 69%)
CMYKcmyk(0%, 27.4%, 1.7%, 31.4%)
CIE-LABlab(59.23, 26.16, -16.54)
CIE-LCHlch(59.23, 30.95, 327.70°)
OKLaboklab(65.88% 0.073 -0.0445)
OKLCHoklch(65.88% 0.085 328.6)
XYZxyz(32.7143, 27.2723, 42.5625)
Luminance0.2727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FAC #7FAF82
analogous
#9A7FAF #AF7FAC #AF7F94
triadic
#AF7FAC #ACAF7F #7FACAF
tetradic
#AF7FAC #AF9A7F #7FAF82 #7F94AF
square
#AF7FAC #AF9A7F #7FAF82 #7F94AF
split-complementary
#AF7FAC #94AF7F #7FAF9A
monochromatic
#6F456C #945D91 #AF7FAC #C7A5C4 #DECADD

Accessibility & contrast

On white

3.25
#AF7FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#AF7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7FAC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FAC#FFFFFF#000000##000000
##AF7FAC1.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D8BAE
Deuteranopia (green-blind)
#8891AA
Tritanopia (blue-blind)
#B3828F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af7fac;
/* rgb */ color: rgb(175, 127, 172);
/* oklch */ color: oklch(65.9% 0.085 328.6);
Tailwind
colors: {
  custom: {
    50: '#c7a4c4',
    500: '#af7fac',
    950: '#000000',
  },
}
SCSS
$custom: #af7fac;
$custom-light: #c7a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fac",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 303.75,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.65877,
    "c": 0.08547,
    "h": 328.6
  },
  "luminance": 0.27271
}

Semantic roles & 50–950 ramp

primary
#AF7FAC
secondary
#BCCEBD
accent
#C06E68
background
#FCFAFC
surface
#F8F4F8
border
#D1CED1
text
#130F12
muted
#827F81

Preview Lab

Preview with #AF7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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