#AFA5CF#AFA5CF

#AFA5CF is a light, moderate violet. Relative luminance 0.405; OKLCH L 74.5% C 0.061 H 295.8°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA5CF
RGBrgb(175, 165, 207)
HSLhsl(254, 30%, 73%)
HSVhsv(254, 20%, 81%)
CMYKcmyk(15.5%, 20.3%, 0%, 18.8%)
CIE-LABlab(69.84, 12.01, -20.06)
CIE-LCHlch(69.84, 23.37, 300.91°)
OKLaboklab(74.46% 0.0264 -0.0546)
OKLCHoklch(74.46% 0.061 295.8)
XYZxyz(42.3944, 40.5290, 64.6088)
Luminance0.4053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5CF #C5CFA5
analogous
#A5B0CF #AFA5CF #C4A5CF
triadic
#AFA5CF #CFAFA5 #A5CFAF
tetradic
#AFA5CF #CFA5B0 #C5CFA5 #A5CFC4
square
#AFA5CF #CFA5B0 #C5CFA5 #A5CFC4
split-complementary
#AFA5CF #CFC4A5 #B0CFA5
monochromatic
#6957A3 #8C7DBA #AFA5CF #D2CDE4 #EDEBF4

Accessibility & contrast

On white

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

On black

9.11
#AFA5CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5CF
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5CF#FFFFFF#000000##000000
##AFA5CF1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CABD1
Deuteranopia (green-blind)
#9DAACE
Tritanopia (blue-blind)
#A9ABB3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa5cf;
/* rgb */ color: rgb(175, 165, 207);
/* oklch */ color: oklch(74.5% 0.061 295.8);
Tailwind
colors: {
  custom: {
    50: '#c7bfdd',
    500: '#afa5cf',
    950: '#000000',
  },
}
SCSS
$custom: #afa5cf;
$custom-light: #c7bfdd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5cf",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 207
  },
  "hsl": {
    "h": 254.286,
    "s": 30.435,
    "l": 72.941
  },
  "oklch": {
    "l": 0.74459,
    "c": 0.06068,
    "h": 295.8
  },
  "luminance": 0.40529
}

Semantic roles & 50–950 ramp

primary
#AFA5CF
secondary
#E8EBE0
accent
#A93C8F
background
#FCFBFD
surface
#F8F7FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA5CF

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

Preview Lab → · Contrast checker → · Palette generator →

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