#AFA2FE#AFA2FE

#AFA2FE is a light, vivid blue. Relative luminance 0.421; OKLCH L 75.9% C 0.130 H 289.4°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FE
RGBrgb(175, 162, 254)
HSLhsl(248, 98%, 82%)
HSVhsv(248, 36%, 100%)
CMYKcmyk(31.1%, 36.2%, 0%, 0.4%)
CIE-LABlab(70.95, 24.74, -44.06)
CIE-LCHlch(70.95, 50.53, 299.31°)
OKLaboklab(75.92% 0.0433 -0.123)
OKLCHoklch(75.92% 0.13 289.4)
XYZxyz(48.4843, 42.1093, 99.3202)
Luminance0.4211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FE #F1FEA2
analogous
#A2C3FE #AFA2FE #DDA2FE
triadic
#AFA2FE #FEAFA2 #A2FEAF
tetradic
#AFA2FE #FEA2C3 #F1FEA2 #A2FEDD
square
#AFA2FE #FEA2C3 #F1FEA2 #A2FEDD
split-complementary
#AFA2FE #FEDDA2 #C3FEA2
monochromatic
#4729FD #7B65FD #AFA2FE #E3DFFF #E5E1FF

Accessibility & contrast

On white

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

On black

9.42
#AFA2FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FE
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FE#FFFFFF#000000##000000
##AFA2FE1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa2fe;
/* rgb */ color: rgb(175, 162, 254);
/* oklch */ color: oklch(75.9% 0.130 289.4);
Tailwind
colors: {
  custom: {
    50: '#c9bdff',
    500: '#afa2fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa2fe;
$custom-light: #c9bdff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2fe",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 254
  },
  "hsl": {
    "h": 248.478,
    "s": 97.872,
    "l": 81.569
  },
  "oklch": {
    "l": 0.75916,
    "c": 0.13044,
    "h": 289.4
  },
  "luminance": 0.4211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA2FE

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

Preview Lab → · Contrast checker → · Palette generator →

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