#AFA5CC#AFA5CC

#AFA5CC is a light, muted violet. Relative luminance 0.404; OKLCH L 74.3% C 0.057 H 296.8°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#AFA5CC
RGBrgb(175, 165, 204)
HSLhsl(255, 28%, 72%)
HSVhsv(255, 19%, 80%)
CMYKcmyk(14.2%, 19.1%, 0%, 20%)
CIE-LABlab(69.74, 11.35, -18.56)
CIE-LCHlch(69.74, 21.76, 301.46°)
OKLaboklab(74.35% 0.0254 -0.0504)
OKLCHoklch(74.35% 0.057 296.8)
XYZxyz(42.0312, 40.3837, 62.6955)
Luminance0.4038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5CC #C2CCA5
analogous
#A5AECC #AFA5CC #C3A5CC
triadic
#AFA5CC #CCAFA5 #A5CCAF
tetradic
#AFA5CC #CCA5AE #C2CCA5 #A5CCC3
square
#AFA5CC #CCA5AE #C2CCA5 #A5CCC3
split-complementary
#AFA5CC #CCC3A5 #AECCA5
monochromatic
#6B599D #8C7EB6 #AFA5CC #D2CCE2 #EEEBF4

Accessibility & contrast

On white

2.31
#AFA5CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#AFA5CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5CC
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5CC#FFFFFF#000000##000000
##AFA5CC1.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9DABCE
Deuteranopia (green-blind)
#9EAACB
Tritanopia (blue-blind)
#AAABB2
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa5cc;
/* rgb */ color: rgb(175, 165, 204);
/* oklch */ color: oklch(74.3% 0.057 296.8);
Tailwind
colors: {
  custom: {
    50: '#c7bfdb',
    500: '#afa5cc',
    950: '#000000',
  },
}
SCSS
$custom: #afa5cc;
$custom-light: #c7bfdb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5cc",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 204
  },
  "hsl": {
    "h": 255.385,
    "s": 27.66,
    "l": 72.353
  },
  "oklch": {
    "l": 0.74345,
    "c": 0.0565,
    "h": 296.8
  },
  "luminance": 0.40384
}

Semantic roles & 50–950 ramp

primary
#AFA5CC
secondary
#E8EAE1
accent
#A63F8C
background
#FCFBFD
surface
#F8F7FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA5CC

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

Preview Lab → · Contrast checker → · Palette generator →

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