#AFA2F6#AFA2F6

#AFA2F6 is a light, moderate blue. Relative luminance 0.416; OKLCH L 75.5% C 0.120 H 290.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F6
RGBrgb(175, 162, 246)
HSLhsl(249, 82%, 80%)
HSVhsv(249, 34%, 96%)
CMYKcmyk(28.9%, 34.1%, 0%, 3.5%)
CIE-LABlab(70.60, 22.76, -40.26)
CIE-LCHlch(70.60, 46.24, 299.48°)
OKLaboklab(75.54% 0.0415 -0.1121)
OKLCHoklch(75.54% 0.12 290.3)
XYZxyz(47.2299, 41.6075, 92.7136)
Luminance0.4161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F6 #E9F6A2
analogous
#A2BFF6 #AFA2F6 #D9A2F6
triadic
#AFA2F6 #F6AFA2 #A2F6AF
tetradic
#AFA2F6 #F6A2BF #E9F6A2 #A2F6D9
square
#AFA2F6 #F6A2BF #E9F6A2 #A2F6D9
split-complementary
#AFA2F6 #F6D9A2 #BFF6A2
monochromatic
#4F32EB #7F6AF1 #AFA2F6 #DFDAFB #E7E3FC

Accessibility & contrast

On white

2.25
#AFA2F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFA2F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F6
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F6#FFFFFF#000000##000000
##AFA2F61.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAEF9
Deuteranopia (green-blind)
#8BABF4
Tritanopia (blue-blind)
#9FB1C1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2f6;
/* rgb */ color: rgb(175, 162, 246);
/* oklch */ color: oklch(75.5% 0.120 290.3);
Tailwind
colors: {
  custom: {
    50: '#c8bdf9',
    500: '#afa2f6',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f6;
$custom-light: #c8bdf9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f6",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 246
  },
  "hsl": {
    "h": 249.286,
    "s": 82.353,
    "l": 80
  },
  "oklch": {
    "l": 0.75537,
    "c": 0.11951,
    "h": 290.3
  },
  "luminance": 0.41608
}

Semantic roles & 50–950 ramp

primary
#AFA2F6
secondary
#F0F4D7
accent
#DF07BD
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F6

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

Preview Lab → · Contrast checker → · Palette generator →

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