#AFA2F2#AFA2F2

#AFA2F2 is a light, moderate blue. Relative luminance 0.414; OKLCH L 75.4% C 0.114 H 290.8°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F2
RGBrgb(175, 162, 242)
HSLhsl(250, 75%, 79%)
HSVhsv(250, 33%, 95%)
CMYKcmyk(27.7%, 33.1%, 0%, 5.1%)
CIE-LABlab(70.43, 21.78, -38.34)
CIE-LCHlch(70.43, 44.10, 299.60°)
OKLaboklab(75.35% 0.0406 -0.1065)
OKLCHoklch(75.35% 0.114 290.8)
XYZxyz(46.6225, 41.3646, 89.5150)
Luminance0.4137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F2 #E5F2A2
analogous
#A2BDF2 #AFA2F2 #D7A2F2
triadic
#AFA2F2 #F2AFA2 #A2F2AF
tetradic
#AFA2F2 #F2A2BD #E5F2A2 #A2F2D7
square
#AFA2F2 #F2A2BD #E5F2A2 #A2F2D7
split-complementary
#AFA2F2 #F2D7A2 #BDF2A2
monochromatic
#5337E3 #816CEA #AFA2F2 #DDD8FA #E8E4FB

Accessibility & contrast

On white

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

On black

9.27
#AFA2F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F2
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F2#FFFFFF#000000##000000
##AFA2F21.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa2f2;
/* rgb */ color: rgb(175, 162, 242);
/* oklch */ color: oklch(75.4% 0.114 290.8);
Tailwind
colors: {
  custom: {
    50: '#c8bdf6',
    500: '#afa2f2',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f2;
$custom-light: #c8bdf6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f2",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 242
  },
  "hsl": {
    "h": 249.75,
    "s": 75.472,
    "l": 79.216
  },
  "oklch": {
    "l": 0.75352,
    "c": 0.11402,
    "h": 290.8
  },
  "luminance": 0.41365
}

Semantic roles & 50–950 ramp

primary
#AFA2F2
secondary
#EFF3D8
accent
#D80EB7
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F2

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

Preview Lab → · Contrast checker → · Palette generator →

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