#AFA2BB#AFA2BB

#AFA2BB is a light, muted violet. Relative luminance 0.385; OKLCH L 73.1% C 0.038 H 308.7°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA2BB
RGBrgb(175, 162, 187)
HSLhsl(271, 16%, 68%)
HSVhsv(271, 13%, 73%)
CMYKcmyk(6.4%, 13.4%, 0%, 26.7%)
CIE-LABlab(68.42, 9.47, -11.14)
CIE-LCHlch(68.42, 14.62, 310.35°)
OKLaboklab(73.13% 0.024 -0.0299)
OKLCHoklch(73.13% 0.038 308.7)
XYZxyz(39.5676, 38.5426, 52.3591)
Luminance0.3854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2BB #AEBBA2
analogous
#A2A2BB #AFA2BB #BBA2BA
triadic
#AFA2BB #BBAFA2 #A2BBAF
tetradic
#AFA2BB #BBA2A2 #AEBBA2 #A2BABB
square
#AFA2BB #BBA2A2 #AEBBA2 #A2BABB
split-complementary
#AFA2BB #BABBA2 #A2BBA2
monochromatic
#726083 #917FA1 #AFA2BB #CDC5D5 #ECE9EF

Accessibility & contrast

On white

2.41
#AFA2BB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFA2BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2BB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2BB#FFFFFF#000000##000000
##AFA2BB1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9EA6BC
Deuteranopia (green-blind)
#A1A7BA
Tritanopia (blue-blind)
#AEA5AA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa2bb;
/* rgb */ color: rgb(175, 162, 187);
/* oklch */ color: oklch(73.1% 0.038 308.7);
Tailwind
colors: {
  custom: {
    50: '#c7bdcf',
    500: '#afa2bb',
    950: '#000000',
  },
}
SCSS
$custom: #afa2bb;
$custom-light: #c7bdcf;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2bb",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 187
  },
  "hsl": {
    "h": 271.2,
    "s": 15.528,
    "l": 68.431
  },
  "oklch": {
    "l": 0.73133,
    "c": 0.03836,
    "h": 308.7
  },
  "luminance": 0.38542
}

Semantic roles & 50–950 ramp

primary
#AFA2BB
secondary
#DCE0D9
accent
#9A4C71
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131213
muted
#828182

Preview Lab

Preview with #AFA2BB

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

Preview Lab → · Contrast checker → · Palette generator →

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