#AFA2DE#AFA2DE

#AFA2DE is a light, moderate violet. Relative luminance 0.402; OKLCH L 74.5% C 0.086 H 294.1°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA2DE
RGBrgb(175, 162, 222)
HSLhsl(253, 48%, 75%)
HSVhsv(253, 27%, 87%)
CMYKcmyk(21.2%, 27%, 0%, 12.9%)
CIE-LABlab(69.63, 17.05, -28.64)
CIE-LCHlch(69.63, 33.33, 300.76°)
OKLaboklab(74.47% 0.0353 -0.0788)
OKLCHoklch(74.47% 0.086 294.1)
XYZxyz(43.7813, 40.2281, 74.5513)
Luminance0.4023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2DE #D1DEA2
analogous
#A2B3DE #AFA2DE #CDA2DE
triadic
#AFA2DE #DEAFA2 #A2DEAF
tetradic
#AFA2DE #DEA2B3 #D1DEA2 #A2DECD
square
#AFA2DE #DEA2B3 #D1DEA2 #A2DECD
split-complementary
#AFA2DE #DECDA2 #B3DEA2
monochromatic
#6148BE #8875CE #AFA2DE #D6CFEE #ECE8F7

Accessibility & contrast

On white

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

On black

9.05
#AFA2DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2DE
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2DE#FFFFFF#000000##000000
##AFA2DE1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94ABE1
Deuteranopia (green-blind)
#95A9DC
Tritanopia (blue-blind)
#A6ACB7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2de;
/* rgb */ color: rgb(175, 162, 222);
/* oklch */ color: oklch(74.5% 0.086 294.1);
Tailwind
colors: {
  custom: {
    50: '#c7bde8',
    500: '#afa2de',
    950: '#000000',
  },
}
SCSS
$custom: #afa2de;
$custom-light: #c7bde8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2de",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 222
  },
  "hsl": {
    "h": 253,
    "s": 47.619,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74474,
    "c": 0.08635,
    "h": 294.1
  },
  "luminance": 0.40229
}

Semantic roles & 50–950 ramp

primary
#AFA2DE
secondary
#EAEEDD
accent
#BB2B9C
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2DE

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

Preview Lab → · Contrast checker → · Palette generator →

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