#AFA2F5#AFA2F5

#AFA2F5 is a light, moderate blue. Relative luminance 0.415; OKLCH L 75.5% C 0.118 H 290.5°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F5
RGBrgb(175, 162, 245)
HSLhsl(249, 81%, 80%)
HSVhsv(249, 34%, 96%)
CMYKcmyk(28.6%, 33.9%, 0%, 3.9%)
CIE-LABlab(70.56, 22.51, -39.78)
CIE-LCHlch(70.56, 45.71, 299.51°)
OKLaboklab(75.49% 0.0413 -0.1107)
OKLCHoklch(75.49% 0.118 290.5)
XYZxyz(47.0768, 41.5463, 91.9075)
Luminance0.4155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F5 #E8F5A2
analogous
#A2BEF5 #AFA2F5 #D9A2F5
triadic
#AFA2F5 #F5AFA2 #A2F5AF
tetradic
#AFA2F5 #F5A2BE #E8F5A2 #A2F5D9
square
#AFA2F5 #F5A2BE #E8F5A2 #A2F5D9
split-complementary
#AFA2F5 #F5D9A2 #BEF5A2
monochromatic
#5033E9 #7F6BEF #AFA2F5 #DFD9FB #E7E3FC

Accessibility & contrast

On white

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

On black

9.31
#AFA2F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F5
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F5#FFFFFF#000000##000000
##AFA2F51.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAEF8
Deuteranopia (green-blind)
#8CABF3
Tritanopia (blue-blind)
#9FB1C0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2f5;
/* rgb */ color: rgb(175, 162, 245);
/* oklch */ color: oklch(75.5% 0.118 290.5);
Tailwind
colors: {
  custom: {
    50: '#c8bdf8',
    500: '#afa2f5',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f5;
$custom-light: #c8bdf8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f5",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 245
  },
  "hsl": {
    "h": 249.398,
    "s": 80.583,
    "l": 79.804
  },
  "oklch": {
    "l": 0.7549,
    "c": 0.11813,
    "h": 290.5
  },
  "luminance": 0.41547
}

Semantic roles & 50–950 ramp

primary
#AFA2F5
secondary
#EFF4D7
accent
#DD09BC
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F5

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

Preview Lab → · Contrast checker → · Palette generator →

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