#AFA8CB#AFA8CB

#AFA8CB is a light, muted violet. Relative luminance 0.414; OKLCH L 74.9% C 0.050 H 294.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA8CB
RGBrgb(175, 168, 203)
HSLhsl(252, 25%, 73%)
HSVhsv(252, 17%, 80%)
CMYKcmyk(13.8%, 17.2%, 0%, 20.4%)
CIE-LABlab(70.48, 9.48, -16.89)
CIE-LCHlch(70.48, 19.37, 299.29°)
OKLaboklab(74.91% 0.0207 -0.0458)
OKLCHoklch(74.91% 0.05 294.3)
XYZxyz(42.4591, 41.4308, 62.2484)
Luminance0.4143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8CB #C4CBA8
analogous
#A8B2CB #AFA8CB #C0A8CB
triadic
#AFA8CB #CBAFA8 #A8CBAF
tetradic
#AFA8CB #CBA8B2 #C4CBA8 #A8CBC0
square
#AFA8CB #CBA8B2 #C4CBA8 #A8CBC0
split-complementary
#AFA8CB #CBC0A8 #B2CBA8
monochromatic
#6A5D9C #8C82B4 #AFA8CB #D2CEE2 #EDECF4

Accessibility & contrast

On white

2.26
#AFA8CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#AFA8CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8CB
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8CB#FFFFFF#000000##000000
##AFA8CB1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A1ADCD
Deuteranopia (green-blind)
#A1ACCA
Tritanopia (blue-blind)
#AAADB4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa8cb;
/* rgb */ color: rgb(175, 168, 203);
/* oklch */ color: oklch(74.9% 0.050 294.3);
Tailwind
colors: {
  custom: {
    50: '#c7c1da',
    500: '#afa8cb',
    950: '#000000',
  },
}
SCSS
$custom: #afa8cb;
$custom-light: #c7c1da;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8cb",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 203
  },
  "hsl": {
    "h": 252,
    "s": 25.18,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74905,
    "c": 0.05031,
    "h": 294.3
  },
  "luminance": 0.41431
}

Semantic roles & 50–950 ramp

primary
#AFA8CB
secondary
#E8EAE1
accent
#A44290
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131215
muted
#828183

Preview Lab

Preview with #AFA8CB

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

Preview Lab → · Contrast checker → · Palette generator →

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