#AFA2DB#AFA2DB

#AFA2DB is a light, moderate violet. Relative luminance 0.401; OKLCH L 74.3% C 0.082 H 294.8°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#AFA2DB
RGBrgb(175, 162, 219)
HSLhsl(254, 44%, 75%)
HSVhsv(254, 26%, 86%)
CMYKcmyk(20.1%, 26%, 0%, 14.1%)
CIE-LABlab(69.52, 16.36, -27.16)
CIE-LCHlch(69.52, 31.71, 301.06°)
OKLaboklab(74.35% 0.0345 -0.0746)
OKLCHoklch(74.35% 0.082 294.8)
XYZxyz(43.3828, 40.0687, 72.4526)
Luminance0.4007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2DB #CEDBA2
analogous
#A2B2DB #AFA2DB #CCA2DB
triadic
#AFA2DB #DBAFA2 #A2DBAF
tetradic
#AFA2DB #DBA2B2 #CEDBA2 #A2DBCC
square
#AFA2DB #DBA2B2 #CEDBA2 #A2DBCC
split-complementary
#AFA2DB #DBCCA2 #B2DBA2
monochromatic
#634AB9 #8976CA #AFA2DB #D5CEEC #ECE9F6

Accessibility & contrast

On white

2.33
#AFA2DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#AFA2DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2DB
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2DB#FFFFFF#000000##000000
##AFA2DB1.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#95AADD
Deuteranopia (green-blind)
#96A9D9
Tritanopia (blue-blind)
#A6ABB6
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2db;
/* rgb */ color: rgb(175, 162, 219);
/* oklch */ color: oklch(74.3% 0.082 294.8);
Tailwind
colors: {
  custom: {
    50: '#c7bde6',
    500: '#afa2db',
    950: '#000000',
  },
}
SCSS
$custom: #afa2db;
$custom-light: #c7bde6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2db",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 219
  },
  "hsl": {
    "h": 253.684,
    "s": 44.186,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74349,
    "c": 0.08219,
    "h": 294.8
  },
  "luminance": 0.40069
}

Semantic roles & 50–950 ramp

primary
#AFA2DB
secondary
#EAEDDE
accent
#B72E98
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2DB

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

Preview Lab → · Contrast checker → · Palette generator →

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