#AFA2B7#AFA2B7

#AFA2B7 is a light, muted violet. Relative luminance 0.384; OKLCH L 73.0% C 0.033 H 312.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFA2B7
RGBrgb(175, 162, 183)
HSLhsl(277, 13%, 68%)
HSVhsv(277, 11%, 72%)
CMYKcmyk(4.4%, 11.5%, 0%, 28.2%)
CIE-LABlab(68.30, 8.67, -9.10)
CIE-LCHlch(68.30, 12.57, 313.59°)
OKLaboklab(73% 0.0225 -0.0244)
OKLCHoklch(73% 0.033 312.8)
XYZxyz(39.1454, 38.3737, 50.1352)
Luminance0.3837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2B7 #AAB7A2
analogous
#A5A2B7 #AFA2B7 #B7A2B4
triadic
#AFA2B7 #B7AFA2 #A2B7AF
tetradic
#AFA2B7 #B7A5A2 #AAB7A2 #A2B4B7
square
#AFA2B7 #B7A5A2 #AAB7A2 #A2B4B7
split-complementary
#AFA2B7 #B4B7A2 #A2B7A5
monochromatic
#73617D #91809C #AFA2B7 #CDC4D2 #EAE7EC

Accessibility & contrast

On white

2.42
#AFA2B7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFA2B7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2B7
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2B7#FFFFFF#000000##000000
##AFA2B71.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9FA6B8
Deuteranopia (green-blind)
#A2A7B6
Tritanopia (blue-blind)
#AEA4A9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa2b7;
/* rgb */ color: rgb(175, 162, 183);
/* oklch */ color: oklch(73.0% 0.033 312.8);
Tailwind
colors: {
  custom: {
    50: '#c7bdcc',
    500: '#afa2b7',
    950: '#000000',
  },
}
SCSS
$custom: #afa2b7;
$custom-light: #c7bdcc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2b7",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 183
  },
  "hsl": {
    "h": 277.143,
    "s": 12.727,
    "l": 67.647
  },
  "oklch": {
    "l": 0.72996,
    "c": 0.0332,
    "h": 312.8
  },
  "luminance": 0.38374
}

Semantic roles & 50–950 ramp

primary
#AFA2B7
secondary
#DADED7
accent
#974F6A
background
#FCFBFC
surface
#F8F6F8
border
#D1D0D1
text
#131213
muted
#828182

Preview Lab

Preview with #AFA2B7

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

Preview Lab → · Contrast checker → · Palette generator →

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