#AFA2DD#AFA2DD

#AFA2DD is a light, moderate violet. Relative luminance 0.402; OKLCH L 74.4% C 0.085 H 294.3°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA2DD
RGBrgb(175, 162, 221)
HSLhsl(253, 46%, 75%)
HSVhsv(253, 27%, 87%)
CMYKcmyk(20.8%, 26.7%, 0%, 13.3%)
CIE-LABlab(69.59, 16.82, -28.14)
CIE-LCHlch(69.59, 32.79, 300.86°)
OKLaboklab(74.43% 0.035 -0.0774)
OKLCHoklch(74.43% 0.085 294.3)
XYZxyz(43.6477, 40.1747, 73.8475)
Luminance0.4017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2DD #D0DDA2
analogous
#A2B3DD #AFA2DD #CCA2DD
triadic
#AFA2DD #DDAFA2 #A2DDAF
tetradic
#AFA2DD #DDA2B3 #D0DDA2 #A2DDCC
square
#AFA2DD #DDA2B3 #D0DDA2 #A2DDCC
split-complementary
#AFA2DD #DDCCA2 #B3DDA2
monochromatic
#6248BC #8875CD #AFA2DD #D6CFED #ECE9F7

Accessibility & contrast

On white

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

On black

9.03
#AFA2DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2DD
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2DD#FFFFFF#000000##000000
##AFA2DD1.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94ABDF
Deuteranopia (green-blind)
#96A9DB
Tritanopia (blue-blind)
#A6ABB7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2dd;
/* rgb */ color: rgb(175, 162, 221);
/* oklch */ color: oklch(74.4% 0.085 294.3);
Tailwind
colors: {
  custom: {
    50: '#c7bde7',
    500: '#afa2dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa2dd;
$custom-light: #c7bde7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2dd",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 221
  },
  "hsl": {
    "h": 253.22,
    "s": 46.457,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74432,
    "c": 0.08497,
    "h": 294.3
  },
  "luminance": 0.40175
}

Semantic roles & 50–950 ramp

primary
#AFA2DD
secondary
#EAEEDD
accent
#BA2C9A
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2DD

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

Preview Lab → · Contrast checker → · Palette generator →

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