#AFA2E7#AFA2E7

#AFA2E7 is a light, moderate violet. Relative luminance 0.407; OKLCH L 74.9% C 0.099 H 292.5°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#AFA2E7
RGBrgb(175, 162, 231)
HSLhsl(251, 59%, 77%)
HSVhsv(251, 30%, 91%)
CMYKcmyk(24.2%, 29.9%, 0%, 9.4%)
CIE-LABlab(69.98, 19.14, -33.03)
CIE-LCHlch(69.98, 38.18, 300.10°)
OKLaboklab(74.86% 0.0378 -0.0913)
OKLCHoklch(74.86% 0.099 292.5)
XYZxyz(45.0199, 40.7235, 81.0744)
Luminance0.4072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2E7 #DAE7A2
analogous
#A2B8E7 #AFA2E7 #D1A2E7
triadic
#AFA2E7 #E7AFA2 #A2E7AF
tetradic
#AFA2E7 #E7A2B8 #DAE7A2 #A2E7D1
square
#AFA2E7 #E7A2B8 #DAE7A2 #A2E7D1
split-complementary
#AFA2E7 #E7D1A2 #B8E7A2
monochromatic
#5B41CE #8571DA #AFA2E7 #D9D3F4 #EAE7F9

Accessibility & contrast

On white

2.30
#AFA2E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#AFA2E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2E7
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2E7#FFFFFF#000000##000000
##AFA2E71.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91ACEA
Deuteranopia (green-blind)
#92AAE5
Tritanopia (blue-blind)
#A3AEBB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2e7;
/* rgb */ color: rgb(175, 162, 231);
/* oklch */ color: oklch(74.9% 0.099 292.5);
Tailwind
colors: {
  custom: {
    50: '#c8bdef',
    500: '#afa2e7',
    950: '#000000',
  },
}
SCSS
$custom: #afa2e7;
$custom-light: #c8bdef;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2e7",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 231
  },
  "hsl": {
    "h": 251.304,
    "s": 58.974,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74859,
    "c": 0.09883,
    "h": 292.5
  },
  "luminance": 0.40724
}

Semantic roles & 50–950 ramp

primary
#AFA2E7
secondary
#ECF0DB
accent
#C71FA7
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2E7

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

Preview Lab → · Contrast checker → · Palette generator →

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