#AFA2F1#AFA2F1

#AFA2F1 is a light, moderate blue. Relative luminance 0.413; OKLCH L 75.3% C 0.113 H 291.0°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F1
RGBrgb(175, 162, 241)
HSLhsl(250, 74%, 79%)
HSVhsv(250, 33%, 95%)
CMYKcmyk(27.4%, 32.8%, 0%, 5.5%)
CIE-LABlab(70.39, 21.54, -37.86)
CIE-LCHlch(70.39, 43.56, 299.63°)
OKLaboklab(75.31% 0.0403 -0.1052)
OKLCHoklch(75.31% 0.113 291)
XYZxyz(46.4728, 41.3047, 88.7262)
Luminance0.4130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F1 #E4F1A2
analogous
#A2BDF1 #AFA2F1 #D7A2F1
triadic
#AFA2F1 #F1AFA2 #A2F1AF
tetradic
#AFA2F1 #F1A2BD #E4F1A2 #A2F1D7
square
#AFA2F1 #F1A2BD #E4F1A2 #A2F1D7
split-complementary
#AFA2F1 #F1D7A2 #BDF1A2
monochromatic
#5338E1 #816DE9 #AFA2F1 #DDD7F9 #E8E4FB

Accessibility & contrast

On white

2.27
#AFA2F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#AFA2F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F1
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F1#FFFFFF#000000##000000
##AFA2F11.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DADF4
Deuteranopia (green-blind)
#8DABEF
Tritanopia (blue-blind)
#A0B0BF
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2f1;
/* rgb */ color: rgb(175, 162, 241);
/* oklch */ color: oklch(75.3% 0.113 291.0);
Tailwind
colors: {
  custom: {
    50: '#c8bdf6',
    500: '#afa2f1',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f1;
$custom-light: #c8bdf6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f1",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 241
  },
  "hsl": {
    "h": 249.873,
    "s": 73.832,
    "l": 79.02
  },
  "oklch": {
    "l": 0.75306,
    "c": 0.11264,
    "h": 291
  },
  "luminance": 0.41305
}

Semantic roles & 50–950 ramp

primary
#AFA2F1
secondary
#EEF3D8
accent
#D610B5
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F1

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

Preview Lab → · Contrast checker → · Palette generator →

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