#AFA8CA#AFA8CA

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

Color values

HEX#AFA8CA
RGBrgb(175, 168, 202)
HSLhsl(252, 24%, 73%)
HSVhsv(252, 17%, 79%)
CMYKcmyk(13.4%, 16.8%, 0%, 20.8%)
CIE-LABlab(70.44, 9.26, -16.39)
CIE-LCHlch(70.44, 18.83, 299.47°)
OKLaboklab(74.87% 0.0204 -0.0445)
OKLCHoklch(74.87% 0.049 294.6)
XYZxyz(42.3403, 41.3833, 61.6228)
Luminance0.4138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8CA #C3CAA8
analogous
#A8B2CA #AFA8CA #C0A8CA
triadic
#AFA8CA #CAAFA8 #A8CAAF
tetradic
#AFA8CA #CAA8B2 #C3CAA8 #A8CAC0
square
#AFA8CA #CAA8B2 #C3CAA8 #A8CAC0
split-complementary
#AFA8CA #CAC0A8 #B2CAA8
monochromatic
#6A5E9A #8C82B3 #AFA8CA #D2CEE1 #EEECF3

Accessibility & contrast

On white

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

On black

9.28
#AFA8CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8CA
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8CA#FFFFFF#000000##000000
##AFA8CA1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A1ADCC
Deuteranopia (green-blind)
#A2ACC9
Tritanopia (blue-blind)
#AAADB3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa8ca;
/* rgb */ color: rgb(175, 168, 202);
/* oklch */ color: oklch(74.9% 0.049 294.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1da',
    500: '#afa8ca',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ca;
$custom-light: #c7c1da;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ca",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 202
  },
  "hsl": {
    "h": 252.353,
    "s": 24.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74868,
    "c": 0.0489,
    "h": 294.6
  },
  "luminance": 0.41383
}

Semantic roles & 50–950 ramp

primary
#AFA8CA
secondary
#E8EAE1
accent
#A3438F
background
#FCFBFD
surface
#F8F7FA
border
#D1D0D3
text
#131214
muted
#828183

Preview Lab

Preview with #AFA8CA

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

Preview Lab → · Contrast checker → · Palette generator →

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