#AFA2CF#AFA2CF

#AFA2CF is a light, moderate violet. Relative luminance 0.395; OKLCH L 73.9% C 0.066 H 298.0°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AFA2CF
RGBrgb(175, 162, 207)
HSLhsl(257, 32%, 72%)
HSVhsv(257, 22%, 81%)
CMYKcmyk(15.5%, 21.7%, 0%, 18.8%)
CIE-LABlab(69.08, 13.68, -21.21)
CIE-LCHlch(69.08, 25.24, 302.81°)
OKLaboklab(73.87% 0.0308 -0.0579)
OKLCHoklch(73.87% 0.066 298)
XYZxyz(41.8597, 39.4595, 64.4305)
Luminance0.3946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2CF #C2CFA2
analogous
#A2ACCF #AFA2CF #C5A2CF
triadic
#AFA2CF #CFAFA2 #A2CFAF
tetradic
#AFA2CF #CFA2AC #C2CFA2 #A2CFC5
square
#AFA2CF #CFA2AC #C2CFA2 #A2CFC5
split-complementary
#AFA2CF #CFC5A2 #ACCFA2
monochromatic
#6B54A3 #8C7ABA #AFA2CF #D2CAE4 #EEEBF5

Accessibility & contrast

On white

2.36
#AFA2CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#AFA2CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2CF
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2CF#FFFFFF#000000##000000
##AFA2CF1.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#99A9D1
Deuteranopia (green-blind)
#9BA8CE
Tritanopia (blue-blind)
#A9A9B1
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa2cf;
/* rgb */ color: rgb(175, 162, 207);
/* oklch */ color: oklch(73.9% 0.066 298.0);
Tailwind
colors: {
  custom: {
    50: '#c7bddd',
    500: '#afa2cf',
    950: '#000000',
  },
}
SCSS
$custom: #afa2cf;
$custom-light: #c7bddd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2cf",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 207
  },
  "hsl": {
    "h": 257.333,
    "s": 31.915,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73868,
    "c": 0.06554,
    "h": 298
  },
  "luminance": 0.3946
}

Semantic roles & 50–950 ramp

primary
#AFA2CF
secondary
#E8EBE0
accent
#AB3B8A
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2CF

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

Preview Lab → · Contrast checker → · Palette generator →

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