#AFA7CB#AFA7CB

#AFA7CB is a light, muted violet. Relative luminance 0.411; OKLCH L 74.7% C 0.052 H 295.3°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#AFA7CB
RGBrgb(175, 167, 203)
HSLhsl(253, 26%, 73%)
HSVhsv(253, 18%, 80%)
CMYKcmyk(13.8%, 17.7%, 0%, 20.4%)
CIE-LABlab(70.22, 10.03, -17.28)
CIE-LCHlch(70.22, 19.98, 300.13°)
OKLaboklab(74.71% 0.0222 -0.0469)
OKLCHoklch(74.71% 0.052 295.3)
XYZxyz(42.2752, 41.0630, 62.1871)
Luminance0.4106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7CB #C3CBA7
analogous
#A7B1CB #AFA7CB #C1A7CB
triadic
#AFA7CB #CBAFA7 #A7CBAF
tetradic
#AFA7CB #CBA7B1 #C3CBA7 #A7CBC1
square
#AFA7CB #CBA7B1 #C3CBA7 #A7CBC1
split-complementary
#AFA7CB #CBC1A7 #B1CBA7
monochromatic
#6A5C9C #8C81B4 #AFA7CB #D2CDE2 #EEECF4

Accessibility & contrast

On white

2.28
#AFA7CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#AFA7CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7CB
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7CB#FFFFFF#000000##000000
##AFA7CB1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A0ACCD
Deuteranopia (green-blind)
#A0ABCA
Tritanopia (blue-blind)
#AAACB3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa7cb;
/* rgb */ color: rgb(175, 167, 203);
/* oklch */ color: oklch(74.7% 0.052 295.3);
Tailwind
colors: {
  custom: {
    50: '#c7c1da',
    500: '#afa7cb',
    950: '#000000',
  },
}
SCSS
$custom: #afa7cb;
$custom-light: #c7c1da;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7cb",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 203
  },
  "hsl": {
    "h": 253.333,
    "s": 25.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74705,
    "c": 0.05189,
    "h": 295.3
  },
  "luminance": 0.41063
}

Semantic roles & 50–950 ramp

primary
#AFA7CB
secondary
#E8EAE1
accent
#A4418E
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131215
muted
#828183

Preview Lab

Preview with #AFA7CB

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

Preview Lab → · Contrast checker → · Palette generator →

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