#AFA6DA#AFA6DA

#AFA6DA is a light, moderate violet. Relative luminance 0.414; OKLCH L 75.1% C 0.075 H 292.4°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA6DA
RGBrgb(175, 166, 218)
HSLhsl(250, 41%, 75%)
HSVhsv(250, 24%, 85%)
CMYKcmyk(19.7%, 23.9%, 0%, 14.5%)
CIE-LABlab(70.49, 13.90, -25.12)
CIE-LCHlch(70.49, 28.71, 298.95°)
OKLaboklab(75.09% 0.0285 -0.0689)
OKLCHoklch(75.09% 0.075 292.4)
XYZxyz(43.9674, 41.4479, 71.9999)
Luminance0.4145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6DA #D1DAA6
analogous
#A6B7DA #AFA6DA #C9A6DA
triadic
#AFA6DA #DAAFA6 #A6DAAF
tetradic
#AFA6DA #DAA6B7 #D1DAA6 #A6DAC9
square
#AFA6DA #DAA6B7 #D1DAA6 #A6DAC9
split-complementary
#AFA6DA #DAC9A6 #B7DAA6
monochromatic
#6150B6 #887BC8 #AFA6DA #D6D1EC #ECE9F6

Accessibility & contrast

On white

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

On black

9.29
#AFA6DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6DA
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6DA#FFFFFF#000000##000000
##AFA6DA1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AADDC
Deuteranopia (green-blind)
#9BABD9
Tritanopia (blue-blind)
#A6AEB8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa6da;
/* rgb */ color: rgb(175, 166, 218);
/* oklch */ color: oklch(75.1% 0.075 292.4);
Tailwind
colors: {
  custom: {
    50: '#c7c0e5',
    500: '#afa6da',
    950: '#000000',
  },
}
SCSS
$custom: #afa6da;
$custom-light: #c7c0e5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6da",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 218
  },
  "hsl": {
    "h": 250.385,
    "s": 41.27,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75087,
    "c": 0.07452,
    "h": 292.4
  },
  "luminance": 0.41448
}

Semantic roles & 50–950 ramp

primary
#AFA6DA
secondary
#EAEDDE
accent
#B4319E
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131215
muted
#828184

Preview Lab

Preview with #AFA6DA

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

Preview Lab → · Contrast checker → · Palette generator →

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