#AFA2CD#AFA2CD

#AFA2CD is a light, moderate violet. Relative luminance 0.394; OKLCH L 73.8% C 0.063 H 298.7°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#AFA2CD
RGBrgb(175, 162, 205)
HSLhsl(258, 30%, 72%)
HSVhsv(258, 21%, 80%)
CMYKcmyk(14.6%, 21%, 0%, 19.6%)
CIE-LABlab(69.01, 13.24, -20.22)
CIE-LCHlch(69.01, 24.17, 303.22°)
OKLaboklab(73.79% 0.0301 -0.0551)
OKLCHoklch(73.79% 0.063 298.7)
XYZxyz(41.6167, 39.3623, 63.1510)
Luminance0.3936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2CD #C0CDA2
analogous
#A2ABCD #AFA2CD #C5A2CD
triadic
#AFA2CD #CDAFA2 #A2CDAF
tetradic
#AFA2CD #CDA2AB #C0CDA2 #A2CDC5
square
#AFA2CD #CDA2AB #C0CDA2 #A2CDC5
split-complementary
#AFA2CD #CDC5A2 #ABCDA2
monochromatic
#6C569F #8D7AB8 #AFA2CD #D1CAE2 #EEEBF4

Accessibility & contrast

On white

2.37
#AFA2CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#AFA2CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2CD
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2CD#FFFFFF#000000##000000
##AFA2CD1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99A8CF
Deuteranopia (green-blind)
#9BA8CC
Tritanopia (blue-blind)
#AAA8B1
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa2cd;
/* rgb */ color: rgb(175, 162, 205);
/* oklch */ color: oklch(73.8% 0.063 298.7);
Tailwind
colors: {
  custom: {
    50: '#c7bddc',
    500: '#afa2cd',
    950: '#000000',
  },
}
SCSS
$custom: #afa2cd;
$custom-light: #c7bddc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2cd",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 205
  },
  "hsl": {
    "h": 258.14,
    "s": 30.07,
    "l": 71.961
  },
  "oklch": {
    "l": 0.73791,
    "c": 0.06277,
    "h": 298.7
  },
  "luminance": 0.39362
}

Semantic roles & 50–950 ramp

primary
#AFA2CD
secondary
#E8EBE0
accent
#A93D88
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2CD

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

Preview Lab → · Contrast checker → · Palette generator →

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