#AFA8F9#AFA8F9

#AFA8F9 is a light, moderate blue. Relative luminance 0.440; OKLCH L 76.8% C 0.115 H 287.3°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#AFA8F9
RGBrgb(175, 168, 249)
HSLhsl(245, 87%, 82%)
HSVhsv(245, 33%, 98%)
CMYKcmyk(29.7%, 32.5%, 0%, 2.4%)
CIE-LABlab(72.20, 20.13, -39.39)
CIE-LCHlch(72.20, 44.24, 297.07°)
OKLaboklab(76.81% 0.0342 -0.1096)
OKLCHoklch(76.81% 0.115 287.3)
XYZxyz(48.7763, 43.9577, 95.5190)
Luminance0.4396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8F9 #F2F9A8
analogous
#A8CAF9 #AFA8F9 #D8A8F9
triadic
#AFA8F9 #F9AFA8 #A8F9AF
tetradic
#AFA8F9 #F9A8CA #F2F9A8 #A8F9D8
square
#AFA8F9 #F9A8CA #F2F9A8 #A8F9D8
split-complementary
#AFA8F9 #F9D8A8 #CAF9A8
monochromatic
#4635F1 #7A6FF5 #AFA8F9 #E4E1FD #E5E2FD

Accessibility & contrast

On white

2.14
#AFA8F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#AFA8F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8F9
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8F9#FFFFFF#000000##000000
##AFA8F91.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91B3FC
Deuteranopia (green-blind)
#90AFF7
Tritanopia (blue-blind)
#9DB7C5
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa8f9;
/* rgb */ color: rgb(175, 168, 249);
/* oklch */ color: oklch(76.8% 0.115 287.3);
Tailwind
colors: {
  custom: {
    50: '#c8c1fb',
    500: '#afa8f9',
    950: '#000000',
  },
}
SCSS
$custom: #afa8f9;
$custom-light: #c8c1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8f9",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 249
  },
  "hsl": {
    "h": 245.185,
    "s": 87.097,
    "l": 81.765
  },
  "oklch": {
    "l": 0.76806,
    "c": 0.11478,
    "h": 287.3
  },
  "luminance": 0.43959
}

Semantic roles & 50–950 ramp

primary
#AFA8F9
secondary
#F2F5D6
accent
#E402D0
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8F9

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

Preview Lab → · Contrast checker → · Palette generator →

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