#AFA7CA#AFA7CA

#AFA7CA is a light, muted violet. Relative luminance 0.410; OKLCH L 74.7% C 0.050 H 295.6°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFA7CA
RGBrgb(175, 167, 202)
HSLhsl(254, 25%, 72%)
HSVhsv(254, 17%, 79%)
CMYKcmyk(13.4%, 17.3%, 0%, 20.8%)
CIE-LABlab(70.19, 9.82, -16.78)
CIE-LCHlch(70.19, 19.44, 300.32°)
OKLaboklab(74.67% 0.0218 -0.0455)
OKLCHoklch(74.67% 0.05 295.6)
XYZxyz(42.1564, 41.0155, 61.5615)
Luminance0.4102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7CA #C2CAA7
analogous
#A7B1CA #AFA7CA #C1A7CA
triadic
#AFA7CA #CAAFA7 #A7CAAF
tetradic
#AFA7CA #CAA7B1 #C2CAA7 #A7CAC1
square
#AFA7CA #CAA7B1 #C2CAA7 #A7CAC1
split-complementary
#AFA7CA #CAC1A7 #B1CAA7
monochromatic
#6B5D9A #8C81B3 #AFA7CA #D2CDE1 #EEECF3

Accessibility & contrast

On white

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

On black

9.20
#AFA7CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7CA
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7CA#FFFFFF#000000##000000
##AFA7CA1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa7ca;
/* rgb */ color: rgb(175, 167, 202);
/* oklch */ color: oklch(74.7% 0.050 295.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1da',
    500: '#afa7ca',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ca;
$custom-light: #c7c1da;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ca",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 202
  },
  "hsl": {
    "h": 253.714,
    "s": 24.823,
    "l": 72.353
  },
  "oklch": {
    "l": 0.74669,
    "c": 0.05049,
    "h": 295.6
  },
  "luminance": 0.41016
}

Semantic roles & 50–950 ramp

primary
#AFA7CA
secondary
#E8EAE1
accent
#A3428D
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131214
muted
#828183

Preview Lab

Preview with #AFA7CA

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

Preview Lab → · Contrast checker → · Palette generator →

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