#AFA5CA#AFA5CA

#AFA5CA is a light, muted violet. Relative luminance 0.403; OKLCH L 74.3% C 0.054 H 297.5°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA5CA
RGBrgb(175, 165, 202)
HSLhsl(256, 26%, 72%)
HSVhsv(256, 18%, 79%)
CMYKcmyk(13.4%, 18.3%, 0%, 20.8%)
CIE-LABlab(69.67, 10.92, -17.56)
CIE-LCHlch(69.67, 20.68, 301.89°)
OKLaboklab(74.27% 0.0248 -0.0477)
OKLCHoklch(74.27% 0.054 297.5)
XYZxyz(41.7928, 40.2883, 61.4403)
Luminance0.4029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5CA #C0CAA5
analogous
#A5AECA #AFA5CA #C2A5CA
triadic
#AFA5CA #CAAFA5 #A5CAAF
tetradic
#AFA5CA #CAA5AE #C0CAA5 #A5CAC2
square
#AFA5CA #CAA5AE #C0CAA5 #A5CAC2
split-complementary
#AFA5CA #CAC2A5 #AECAA5
monochromatic
#6C5B9A #8D7EB3 #AFA5CA #D1CCE1 #EEECF4

Accessibility & contrast

On white

2.32
#AFA5CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFA5CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5CA
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5CA#FFFFFF#000000##000000
##AFA5CA1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9EAACC
Deuteranopia (green-blind)
#9FAAC9
Tritanopia (blue-blind)
#AAAAB1
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa5ca;
/* rgb */ color: rgb(175, 165, 202);
/* oklch */ color: oklch(74.3% 0.054 297.5);
Tailwind
colors: {
  custom: {
    50: '#c7bfda',
    500: '#afa5ca',
    950: '#000000',
  },
}
SCSS
$custom: #afa5ca;
$custom-light: #c7bfda;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5ca",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 202
  },
  "hsl": {
    "h": 256.216,
    "s": 25.874,
    "l": 71.961
  },
  "oklch": {
    "l": 0.7427,
    "c": 0.05371,
    "h": 297.5
  },
  "luminance": 0.40288
}

Semantic roles & 50–950 ramp

primary
#AFA5CA
secondary
#E8EAE1
accent
#A4418A
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131214
muted
#828183

Preview Lab

Preview with #AFA5CA

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

Preview Lab → · Contrast checker → · Palette generator →

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