#AFA2C7#AFA2C7

#AFA2C7 is a light, muted violet. Relative luminance 0.391; OKLCH L 73.6% C 0.055 H 301.1°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFA2C7
RGBrgb(175, 162, 199)
HSLhsl(261, 25%, 71%)
HSVhsv(261, 19%, 78%)
CMYKcmyk(12.1%, 18.6%, 0%, 22%)
CIE-LABlab(68.81, 11.95, -17.21)
CIE-LCHlch(68.81, 20.95, 304.78°)
OKLaboklab(73.56% 0.0282 -0.0467)
OKLCHoklch(73.56% 0.055 301.1)
XYZxyz(40.9063, 39.0781, 59.4095)
Luminance0.3908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2C7 #BAC7A2
analogous
#A2A7C7 #AFA2C7 #C1A2C7
triadic
#AFA2C7 #C7AFA2 #A2C7AF
tetradic
#AFA2C7 #C7A2A7 #BAC7A2 #A2C7C1
square
#AFA2C7 #C7A2A7 #BAC7A2 #A2C7C1
split-complementary
#AFA2C7 #C7C1A2 #A7C7A2
monochromatic
#6E5A95 #8E7CB0 #AFA2C7 #D0C8DE #EFECF3

Accessibility & contrast

On white

2.38
#AFA2C7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#AFA2C7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2C7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2C7#FFFFFF#000000##000000
##AFA2C71.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BA8C9
Deuteranopia (green-blind)
#9DA8C6
Tritanopia (blue-blind)
#ABA7AE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa2c7;
/* rgb */ color: rgb(175, 162, 199);
/* oklch */ color: oklch(73.6% 0.055 301.1);
Tailwind
colors: {
  custom: {
    50: '#c7bdd8',
    500: '#afa2c7',
    950: '#000000',
  },
}
SCSS
$custom: #afa2c7;
$custom-light: #c7bdd8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2c7",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 199
  },
  "hsl": {
    "h": 261.081,
    "s": 24.832,
    "l": 70.784
  },
  "oklch": {
    "l": 0.73564,
    "c": 0.05452,
    "h": 301.1
  },
  "luminance": 0.39078
}

Semantic roles & 50–950 ramp

primary
#AFA2C7
secondary
#E4E7DD
accent
#A34281
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#131214
muted
#828183

Preview Lab

Preview with #AFA2C7

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

Preview Lab → · Contrast checker → · Palette generator →

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