#AFA2FF#AFA2FF

#AFA2FF is a light, vivid blue. Relative luminance 0.422; OKLCH L 76.0% C 0.132 H 289.3°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FF
RGBrgb(175, 162, 255)
HSLhsl(248, 100%, 82%)
HSVhsv(248, 36%, 100%)
CMYKcmyk(31.4%, 36.5%, 0%, 0%)
CIE-LABlab(70.99, 24.99, -44.53)
CIE-LCHlch(70.99, 51.06, 299.30°)
OKLaboklab(75.96% 0.0435 -0.1244)
OKLCHoklch(75.96% 0.132 289.3)
XYZxyz(48.6448, 42.1735, 100.1657)
Luminance0.4218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FF #F2FFA2
analogous
#A2C4FF #AFA2FF #DEA2FF
triadic
#AFA2FF #FFAFA2 #A2FFAF
tetradic
#AFA2FF #FFA2C4 #F2FFA2 #A2FFDE
square
#AFA2FF #FFA2C4 #F2FFA2 #A2FFDE
split-complementary
#AFA2FF #FFDEA2 #C4FFA2
monochromatic
#4628FF #7A65FF #AFA2FF #E4DFFF #E5E0FF

Accessibility & contrast

On white

2.23
#AFA2FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#AFA2FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FF
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FF#FFFFFF#000000##000000
##AFA2FF1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87B0FF
Deuteranopia (green-blind)
#87ACFD
Tritanopia (blue-blind)
#9CB3C5
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa2ff;
/* rgb */ color: rgb(175, 162, 255);
/* oklch */ color: oklch(76.0% 0.132 289.3);
Tailwind
colors: {
  custom: {
    50: '#c9bdff',
    500: '#afa2ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ff;
$custom-light: #c9bdff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ff",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 255
  },
  "hsl": {
    "h": 248.387,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.75964,
    "c": 0.1318,
    "h": 289.3
  },
  "luminance": 0.42175
}

Semantic roles & 50–950 ramp

primary
#AFA2FF
secondary
#F2F7D4
accent
#E600C5
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA2FF

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

Preview Lab → · Contrast checker → · Palette generator →

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