#AF7EA7#AF7EA7

#AF7EA7 is a light, moderate purple. Relative luminance 0.268; OKLCH L 65.5% C 0.082 H 332.3°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF7EA7
RGBrgb(175, 126, 167)
HSLhsl(310, 23%, 59%)
HSVhsv(310, 28%, 69%)
CMYKcmyk(0%, 28%, 4.6%, 31.4%)
CIE-LABlab(58.81, 25.78, -14.30)
CIE-LCHlch(58.81, 29.48, 330.99°)
OKLaboklab(65.51% 0.073 -0.0383)
OKLCHoklch(65.51% 0.082 332.3)
XYZxyz(32.1146, 26.8269, 40.0382)
Luminance0.2683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EA7 #7EAF86
analogous
#9F7EAF #AF7EA7 #AF7E8F
triadic
#AF7EA7 #A7AF7E #7EA7AF
tetradic
#AF7EA7 #AF9F7E #7EAF86 #7E8FAF
square
#AF7EA7 #AF9F7E #7EAF86 #7E8FAF
split-complementary
#AF7EA7 #8FAF7E #7EAF9F
monochromatic
#6E4467 #945C8B #AF7EA7 #C6A4C1 #DECADB

Accessibility & contrast

On white

3.30
#AF7EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#AF7EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7EA7
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EA7#FFFFFF#000000##000000
##AF7EA71.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D89A9
Deuteranopia (green-blind)
#8990A5
Tritanopia (blue-blind)
#B3808C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af7ea7;
/* rgb */ color: rgb(175, 126, 167);
/* oklch */ color: oklch(65.5% 0.082 332.3);
Tailwind
colors: {
  custom: {
    50: '#c7a4c1',
    500: '#af7ea7',
    950: '#000000',
  },
}
SCSS
$custom: #af7ea7;
$custom-light: #c7a4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ea7",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 309.796,
    "s": 23.445,
    "l": 59.02
  },
  "oklch": {
    "l": 0.65505,
    "c": 0.08241,
    "h": 332.3
  },
  "luminance": 0.26826
}

Semantic roles & 50–950 ramp

primary
#AF7EA7
secondary
#BBCEBE
accent
#C07668
background
#FCFAFB
surface
#F8F4F7
border
#D1CED0
text
#130F12
muted
#827F81

Preview Lab

Preview with #AF7EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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