#AFA2CC#AFA2CC

#AFA2CC is a light, moderate violet. Relative luminance 0.393; OKLCH L 73.8% C 0.061 H 299.1°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#AFA2CC
RGBrgb(175, 162, 204)
HSLhsl(259, 29%, 72%)
HSVhsv(259, 21%, 80%)
CMYKcmyk(14.2%, 20.6%, 0%, 20%)
CIE-LABlab(68.98, 13.02, -19.72)
CIE-LCHlch(68.98, 23.63, 303.45°)
OKLaboklab(73.75% 0.0298 -0.0537)
OKLCHoklch(73.75% 0.061 299.1)
XYZxyz(41.4964, 39.3141, 62.5173)
Luminance0.3931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2CC #BFCCA2
analogous
#A2AACC #AFA2CC #C4A2CC
triadic
#AFA2CC #CCAFA2 #A2CCAF
tetradic
#AFA2CC #CCA2AA #BFCCA2 #A2CCC4
square
#AFA2CC #CCA2AA #BFCCA2 #A2CCC4
split-complementary
#AFA2CC #CCC4A2 #AACCA2
monochromatic
#6C569D #8D7AB6 #AFA2CC #D1CAE2 #EEEBF4

Accessibility & contrast

On white

2.37
#AFA2CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#AFA2CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2CC
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2CC#FFFFFF#000000##000000
##AFA2CC1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AA8CE
Deuteranopia (green-blind)
#9CA8CB
Tritanopia (blue-blind)
#AAA8B0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa2cc;
/* rgb */ color: rgb(175, 162, 204);
/* oklch */ color: oklch(73.8% 0.061 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7bddb',
    500: '#afa2cc',
    950: '#000000',
  },
}
SCSS
$custom: #afa2cc;
$custom-light: #c7bddb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2cc",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 204
  },
  "hsl": {
    "h": 258.571,
    "s": 29.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73753,
    "c": 0.06138,
    "h": 299.1
  },
  "luminance": 0.39314
}

Semantic roles & 50–950 ramp

primary
#AFA2CC
secondary
#E7EAE0
accent
#A83E87
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2CC

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

Preview Lab → · Contrast checker → · Palette generator →

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