#AF6DC7#AF6DC7

#AF6DC7 is a light, vivid purple. Relative luminance 0.242; OKLCH L 64.0% C 0.147 H 316.5°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF6DC7
RGBrgb(175, 109, 199)
HSLhsl(284, 45%, 60%)
HSVhsv(284, 45%, 78%)
CMYKcmyk(12.1%, 45.2%, 0%, 22%)
CIE-LABlab(56.26, 41.55, -36.53)
CIE-LCHlch(56.26, 55.32, 318.68°)
OKLaboklab(64% 0.1067 -0.1011)
OKLCHoklch(64% 0.147 316.5)
XYZxyz(33.4551, 24.1757, 56.9258)
Luminance0.2417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DC7 #85C76D
analogous
#826DC7 #AF6DC7 #C76DB2
triadic
#AF6DC7 #C7AF6D #6DC7AF
tetradic
#AF6DC7 #C7826D #85C76D #6DB2C7
square
#AF6DC7 #C7826D #85C76D #6DB2C7
split-complementary
#AF6DC7 #B2C76D #6DC782
monochromatic
#703386 #9544B2 #AF6DC7 #C799D8 #DFC5E9

Accessibility & contrast

On white

3.60
#AF6DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#AF6DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DC7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DC7#FFFFFF#000000##000000
##AF6DC71.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D83CA
Deuteranopia (green-blind)
#6F89C4
Tritanopia (blue-blind)
#AE7A91
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #af6dc7;
/* rgb */ color: rgb(175, 109, 199);
/* oklch */ color: oklch(64.0% 0.147 316.5);
Tailwind
colors: {
  custom: {
    50: '#c898d8',
    500: '#af6dc7',
    950: '#000000',
  },
}
SCSS
$custom: #af6dc7;
$custom-light: #c898d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af6dc7",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 284,
    "s": 44.554,
    "l": 60.392
  },
  "oklch": {
    "l": 0.64,
    "c": 0.147,
    "h": 316.5
  },
  "luminance": 0.24175
}

Semantic roles & 50–950 ramp

primary
#AF6DC7
secondary
#C0D9B7
accent
#B82E53
background
#FCF9FD
surface
#F8F2FA
border
#D1CCD3
text
#130E14
muted
#827E83

Preview Lab

Preview with #AF6DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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