#AFA2CB#AFA2CB

#AFA2CB is a light, moderate violet. Relative luminance 0.393; OKLCH L 73.7% C 0.060 H 299.4°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFA2CB
RGBrgb(175, 162, 203)
HSLhsl(259, 28%, 72%)
HSVhsv(259, 20%, 80%)
CMYKcmyk(13.8%, 20.2%, 0%, 20.4%)
CIE-LABlab(68.94, 12.81, -19.22)
CIE-LCHlch(68.94, 23.09, 303.69°)
OKLaboklab(73.72% 0.0295 -0.0523)
OKLCHoklch(73.72% 0.06 299.4)
XYZxyz(41.3768, 39.2663, 61.8876)
Luminance0.3927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2CB #BECBA2
analogous
#A2AACB #AFA2CB #C4A2CB
triadic
#AFA2CB #CBAFA2 #A2CBAF
tetradic
#AFA2CB #CBA2AA #BECBA2 #A2CBC4
square
#AFA2CB #CBA2AA #BECBA2 #A2CBC4
split-complementary
#AFA2CB #CBC4A2 #AACBA2
monochromatic
#6D579C #8D7BB5 #AFA2CB #D1C9E1 #EEEBF4

Accessibility & contrast

On white

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

On black

8.85
#AFA2CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2CB
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2CB#FFFFFF#000000##000000
##AFA2CB1.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AA8CD
Deuteranopia (green-blind)
#9CA8CA
Tritanopia (blue-blind)
#AAA8B0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa2cb;
/* rgb */ color: rgb(175, 162, 203);
/* oklch */ color: oklch(73.7% 0.060 299.4);
Tailwind
colors: {
  custom: {
    50: '#c7bddb',
    500: '#afa2cb',
    950: '#000000',
  },
}
SCSS
$custom: #afa2cb;
$custom-light: #c7bddb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2cb",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 203
  },
  "hsl": {
    "h": 259.024,
    "s": 28.276,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73715,
    "c": 0.06002,
    "h": 299.4
  },
  "luminance": 0.39266
}

Semantic roles & 50–950 ramp

primary
#AFA2CB
secondary
#E6EADF
accent
#A73F86
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2CB

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

Preview Lab → · Contrast checker → · Palette generator →

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