#AFA2E2#AFA2E2

#AFA2E2 is a light, moderate violet. Relative luminance 0.404; OKLCH L 74.6% C 0.092 H 293.4°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA2E2
RGBrgb(175, 162, 226)
HSLhsl(252, 52%, 76%)
HSVhsv(252, 28%, 89%)
CMYKcmyk(22.6%, 28.3%, 0%, 11.4%)
CIE-LABlab(69.79, 17.97, -30.59)
CIE-LCHlch(69.79, 35.48, 300.43°)
OKLaboklab(74.64% 0.0364 -0.0844)
OKLCHoklch(74.64% 0.092 293.4)
XYZxyz(44.3238, 40.4451, 77.4083)
Luminance0.4045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2E2 #D5E2A2
analogous
#A2B5E2 #AFA2E2 #CFA2E2
triadic
#AFA2E2 #E2AFA2 #A2E2AF
tetradic
#AFA2E2 #E2A2B5 #D5E2A2 #A2E2CF
square
#AFA2E2 #E2A2B5 #D5E2A2 #A2E2CF
split-complementary
#AFA2E2 #E2CFA2 #B5E2A2
monochromatic
#5F45C5 #8773D3 #AFA2E2 #D7D1F1 #EBE8F8

Accessibility & contrast

On white

2.31
#AFA2E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#AFA2E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2E2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2E2#FFFFFF#000000##000000
##AFA2E21.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93ABE5
Deuteranopia (green-blind)
#94A9E0
Tritanopia (blue-blind)
#A5ACB9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2e2;
/* rgb */ color: rgb(175, 162, 226);
/* oklch */ color: oklch(74.6% 0.092 293.4);
Tailwind
colors: {
  custom: {
    50: '#c8bdeb',
    500: '#afa2e2',
    950: '#000000',
  },
}
SCSS
$custom: #afa2e2;
$custom-light: #c8bdeb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2e2",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 226
  },
  "hsl": {
    "h": 252.188,
    "s": 52.459,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74643,
    "c": 0.0919,
    "h": 293.4
  },
  "luminance": 0.40446
}

Semantic roles & 50–950 ramp

primary
#AFA2E2
secondary
#EBEFDC
accent
#C026A1
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2E2

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

Preview Lab → · Contrast checker → · Palette generator →

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