#AFA2F4#AFA2F4

#AFA2F4 is a light, moderate blue. Relative luminance 0.415; OKLCH L 75.4% C 0.117 H 290.6°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F4
RGBrgb(175, 162, 244)
HSLhsl(250, 79%, 80%)
HSVhsv(250, 34%, 96%)
CMYKcmyk(28.3%, 33.6%, 0%, 4.3%)
CIE-LABlab(70.51, 22.27, -39.30)
CIE-LCHlch(70.51, 45.17, 299.54°)
OKLaboklab(75.44% 0.0411 -0.1093)
OKLCHoklch(75.44% 0.117 290.6)
XYZxyz(46.9246, 41.4854, 91.1056)
Luminance0.4149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F4 #E7F4A2
analogous
#A2BEF4 #AFA2F4 #D8A2F4
triadic
#AFA2F4 #F4AFA2 #A2F4AF
tetradic
#AFA2F4 #F4A2BE #E7F4A2 #A2F4D8
square
#AFA2F4 #F4A2BE #E7F4A2 #A2F4D8
split-complementary
#AFA2F4 #F4D8A2 #BEF4A2
monochromatic
#5135E7 #806BEE #AFA2F4 #DED9FA #E7E4FC

Accessibility & contrast

On white

2.26
#AFA2F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFA2F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F4
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F4#FFFFFF#000000##000000
##AFA2F41.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAEF7
Deuteranopia (green-blind)
#8CABF2
Tritanopia (blue-blind)
#9FB0C0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2f4;
/* rgb */ color: rgb(175, 162, 244);
/* oklch */ color: oklch(75.4% 0.117 290.6);
Tailwind
colors: {
  custom: {
    50: '#c8bdf8',
    500: '#afa2f4',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f4;
$custom-light: #c8bdf8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f4",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 244
  },
  "hsl": {
    "h": 249.512,
    "s": 78.846,
    "l": 79.608
  },
  "oklch": {
    "l": 0.75444,
    "c": 0.11676,
    "h": 290.6
  },
  "luminance": 0.41486
}

Semantic roles & 50–950 ramp

primary
#AFA2F4
secondary
#EFF4D7
accent
#DB0ABA
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F4

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

Preview Lab → · Contrast checker → · Palette generator →

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