#AF7DC2#AF7DC2

#AF7DC2 is a light, moderate purple. Relative luminance 0.277; OKLCH L 66.4% C 0.113 H 316.4°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AF7DC2
RGBrgb(175, 125, 194)
HSLhsl(283, 36%, 63%)
HSVhsv(283, 36%, 76%)
CMYKcmyk(9.8%, 35.6%, 0%, 23.9%)
CIE-LABlab(59.60, 31.68, -28.50)
CIE-LCHlch(59.60, 42.61, 318.03°)
OKLaboklab(66.44% 0.0821 -0.0782)
OKLCHoklch(66.44% 0.113 316.4)
XYZxyz(34.7490, 27.6770, 54.5402)
Luminance0.2768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DC2 #90C27D
analogous
#8C7DC2 #AF7DC2 #C27DB3
triadic
#AF7DC2 #C2AF7D #7DC2AF
tetradic
#AF7DC2 #C28C7D #90C27D #7DB3C2
square
#AF7DC2 #C28C7D #90C27D #7DB3C2
split-complementary
#AF7DC2 #B3C27D #7DC28C
monochromatic
#723F86 #9553AE #AF7DC2 #C9A7D6 #E2D0E9

Accessibility & contrast

On white

3.21
#AF7DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#AF7DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DC2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DC2#FFFFFF#000000##000000
##AF7DC21.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#738CC5
Deuteranopia (green-blind)
#7F91C0
Tritanopia (blue-blind)
#AF8697
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af7dc2;
/* rgb */ color: rgb(175, 125, 194);
/* oklch */ color: oklch(66.4% 0.113 316.4);
Tailwind
colors: {
  custom: {
    50: '#c8a3d4',
    500: '#af7dc2',
    950: '#000000',
  },
}
SCSS
$custom: #af7dc2;
$custom-light: #c8a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dc2",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 194
  },
  "hsl": {
    "h": 283.478,
    "s": 36.126,
    "l": 62.549
  },
  "oklch": {
    "l": 0.66435,
    "c": 0.11339,
    "h": 316.4
  },
  "luminance": 0.27676
}

Semantic roles & 50–950 ramp

primary
#AF7DC2
secondary
#C8DAC1
accent
#AF3658
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F14
muted
#827F83

Preview Lab

Preview with #AF7DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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