#AFA7CF#AFA7CF

#AFA7CF is a light, muted violet. Relative luminance 0.413; OKLCH L 74.9% C 0.058 H 294.1°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA7CF
RGBrgb(175, 167, 207)
HSLhsl(252, 29%, 73%)
HSVhsv(252, 19%, 81%)
CMYKcmyk(15.5%, 19.3%, 0%, 18.8%)
CIE-LABlab(70.36, 10.90, -19.28)
CIE-LCHlch(70.36, 22.15, 299.47°)
OKLaboklab(74.86% 0.0235 -0.0525)
OKLCHoklch(74.86% 0.058 294.1)
XYZxyz(42.7580, 41.2561, 64.7300)
Luminance0.4126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7CF #C7CFA7
analogous
#A7B3CF #AFA7CF #C3A7CF
triadic
#AFA7CF #CFAFA7 #A7CFAF
tetradic
#AFA7CF #CFA7B3 #C7CFA7 #A7CFC3
square
#AFA7CF #CFA7B3 #C7CFA7 #A7CFC3
split-complementary
#AFA7CF #CFC3A7 #B3CFA7
monochromatic
#6859A3 #8B7FB9 #AFA7CF #D3CFE5 #EDEBF4

Accessibility & contrast

On white

2.27
#AFA7CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFA7CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7CF
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7CF#FFFFFF#000000##000000
##AFA7CF1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9EACD1
Deuteranopia (green-blind)
#9FABCE
Tritanopia (blue-blind)
#A9ADB4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa7cf;
/* rgb */ color: rgb(175, 167, 207);
/* oklch */ color: oklch(74.9% 0.058 294.1);
Tailwind
colors: {
  custom: {
    50: '#c7c1dd',
    500: '#afa7cf',
    950: '#000000',
  },
}
SCSS
$custom: #afa7cf;
$custom-light: #c7c1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7cf",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 207
  },
  "hsl": {
    "h": 252,
    "s": 29.412,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74855,
    "c": 0.05751,
    "h": 294.1
  },
  "luminance": 0.41256
}

Semantic roles & 50–950 ramp

primary
#AFA7CF
secondary
#E9EBE0
accent
#A83D93
background
#FCFBFD
surface
#F8F7FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA7CF

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

Preview Lab → · Contrast checker → · Palette generator →

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