#AFA2E9#AFA2E9

#AFA2E9 is a light, moderate violet. Relative luminance 0.408; OKLCH L 74.9% C 0.102 H 292.2°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA2E9
RGBrgb(175, 162, 233)
HSLhsl(251, 62%, 77%)
HSVhsv(251, 30%, 91%)
CMYKcmyk(24.9%, 30.5%, 0%, 8.6%)
CIE-LABlab(70.06, 19.62, -34.00)
CIE-LCHlch(70.06, 39.25, 299.98°)
OKLaboklab(74.95% 0.0383 -0.0941)
OKLCHoklch(74.95% 0.102 292.2)
XYZxyz(45.3040, 40.8372, 82.5705)
Luminance0.4084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2E9 #DCE9A2
analogous
#A2B8E9 #AFA2E9 #D3A2E9
triadic
#AFA2E9 #E9AFA2 #A2E9AF
tetradic
#AFA2E9 #E9A2B8 #DCE9A2 #A2E9D3
square
#AFA2E9 #E9A2B8 #DCE9A2 #A2E9D3
split-complementary
#AFA2E9 #E9D3A2 #B8E9A2
monochromatic
#5A3FD2 #8471DD #AFA2E9 #DAD3F5 #EAE6F9

Accessibility & contrast

On white

2.29
#AFA2E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#AFA2E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2E9
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2E9#FFFFFF#000000##000000
##AFA2E91.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90ACEC
Deuteranopia (green-blind)
#91AAE7
Tritanopia (blue-blind)
#A3AEBB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2e9;
/* rgb */ color: rgb(175, 162, 233);
/* oklch */ color: oklch(74.9% 0.102 292.2);
Tailwind
colors: {
  custom: {
    50: '#c8bdf0',
    500: '#afa2e9',
    950: '#000000',
  },
}
SCSS
$custom: #afa2e9;
$custom-light: #c8bdf0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2e9",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 233
  },
  "hsl": {
    "h": 250.986,
    "s": 61.739,
    "l": 77.451
  },
  "oklch": {
    "l": 0.74947,
    "c": 0.1016,
    "h": 292.2
  },
  "luminance": 0.40838
}

Semantic roles & 50–950 ramp

primary
#AFA2E9
secondary
#ECF1DA
accent
#C91CAA
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2E9

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

Preview Lab → · Contrast checker → · Palette generator →

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