#AFA7C2#AFA7C2

#AFA7C2 is a light, muted violet. Relative luminance 0.406; OKLCH L 74.4% C 0.039 H 299.0°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#AFA7C2
RGBrgb(175, 167, 194)
HSLhsl(258, 18%, 71%)
HSVhsv(258, 14%, 76%)
CMYKcmyk(9.8%, 13.9%, 0%, 23.9%)
CIE-LABlab(69.93, 8.13, -12.76)
CIE-LCHlch(69.93, 15.13, 302.51°)
OKLaboklab(74.38% 0.0191 -0.0344)
OKLCHoklch(74.38% 0.039 299)
XYZxyz(41.2336, 40.6464, 56.7017)
Luminance0.4065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7C2 #BAC2A7
analogous
#A7ACC2 #AFA7C2 #BCA7C2
triadic
#AFA7C2 #C2AFA7 #A7C2AF
tetradic
#AFA7C2 #C2A7AC #BAC2A7 #A7C2BC
square
#AFA7C2 #C2A7AC #BAC2A7 #A7C2BC
split-complementary
#AFA7C2 #C2BCA7 #ACC2A7
monochromatic
#6E628D #8E83A9 #AFA7C2 #D0CBDB #EFEDF2

Accessibility & contrast

On white

2.30
#AFA7C2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#AFA7C2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7C2
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7C2#FFFFFF#000000##000000
##AFA7C21.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2ABC3
Deuteranopia (green-blind)
#A3ABC1
Tritanopia (blue-blind)
#ACABB0
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa7c2;
/* rgb */ color: rgb(175, 167, 194);
/* oklch */ color: oklch(74.4% 0.039 299.0);
Tailwind
colors: {
  custom: {
    50: '#c7c1d4',
    500: '#afa7c2',
    950: '#000000',
  },
}
SCSS
$custom: #afa7c2;
$custom-light: #c7c1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7c2",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 194
  },
  "hsl": {
    "h": 257.778,
    "s": 18.121,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74381,
    "c": 0.03932,
    "h": 299
  },
  "luminance": 0.40646
}

Semantic roles & 50–950 ramp

primary
#AFA7C2
secondary
#E4E6DF
accent
#9C4984
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131214
muted
#828183

Preview Lab

Preview with #AFA7C2

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

Preview Lab → · Contrast checker → · Palette generator →

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