#AFA7BA#AFA7BA

#AFA7BA is a light, muted violet. Relative luminance 0.403; OKLCH L 74.1% C 0.028 H 304.7°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA7BA
RGBrgb(175, 167, 186)
HSLhsl(265, 12%, 69%)
HSVhsv(265, 10%, 73%)
CMYKcmyk(5.9%, 10.2%, 0%, 27.1%)
CIE-LABlab(69.68, 6.50, -8.70)
CIE-LCHlch(69.68, 10.86, 306.76°)
OKLaboklab(74.11% 0.0162 -0.0233)
OKLCHoklch(74.11% 0.028 304.7)
XYZxyz(40.3593, 40.2966, 52.0967)
Luminance0.4030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7BA #B2BAA7
analogous
#A7A9BA #AFA7BA #B9A7BA
triadic
#AFA7BA #BAAFA7 #A7BAAF
tetradic
#AFA7BA #BAA7A9 #B2BAA7 #A7BAB9
square
#AFA7BA #BAA7A9 #B2BAA7 #A7BAB9
split-complementary
#AFA7BA #BAB9A7 #A9BAA7
monochromatic
#716581 #90859F #AFA7BA #CEC9D5 #EDECF0

Accessibility & contrast

On white

2.32
#AFA7BA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFA7BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7BA
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7BA#FFFFFF#000000##000000
##AFA7BA1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4AABB
Deuteranopia (green-blind)
#A5AAB9
Tritanopia (blue-blind)
#AEA9AD
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa7ba;
/* rgb */ color: rgb(175, 167, 186);
/* oklch */ color: oklch(74.1% 0.028 304.7);
Tailwind
colors: {
  custom: {
    50: '#c6c1ce',
    500: '#afa7ba',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ba;
$custom-light: #c6c1ce;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ba",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 186
  },
  "hsl": {
    "h": 265.263,
    "s": 12.102,
    "l": 69.216
  },
  "oklch": {
    "l": 0.74106,
    "c": 0.02837,
    "h": 304.7
  },
  "luminance": 0.40297
}

Semantic roles & 50–950 ramp

primary
#AFA7BA
secondary
#DFE1DC
accent
#964F78
background
#FCFBFC
surface
#F8F7F9
border
#D1D0D2
text
#131213
muted
#828182

Preview Lab

Preview with #AFA7BA

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

Preview Lab → · Contrast checker → · Palette generator →

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