#AFA8FA#AFA8FA

#AFA8FA is a light, moderate blue. Relative luminance 0.440; OKLCH L 76.9% C 0.116 H 287.2°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#AFA8FA
RGBrgb(175, 168, 250)
HSLhsl(245, 89%, 82%)
HSVhsv(245, 33%, 98%)
CMYKcmyk(30%, 32.8%, 0%, 2%)
CIE-LABlab(72.24, 20.38, -39.87)
CIE-LCHlch(72.24, 44.77, 297.08°)
OKLaboklab(76.85% 0.0344 -0.1109)
OKLCHoklch(76.85% 0.116 287.2)
XYZxyz(48.9327, 44.0202, 96.3426)
Luminance0.4402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FA #F3FAA8
analogous
#A8CAFA #AFA8FA #D8A8FA
triadic
#AFA8FA #FAAFA8 #A8FAAF
tetradic
#AFA8FA #FAA8CA #F3FAA8 #A8FAD8
square
#AFA8FA #FAA8CA #F3FAA8 #A8FAD8
split-complementary
#AFA8FA #FAD8A8 #CAFAA8
monochromatic
#4534F3 #7A6EF7 #AFA8FA #E4E2FD #E4E2FD

Accessibility & contrast

On white

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

On black

9.80
#AFA8FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FA
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FA#FFFFFF#000000##000000
##AFA8FA1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91B3FD
Deuteranopia (green-blind)
#8FAFF8
Tritanopia (blue-blind)
#9DB7C6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa8fa;
/* rgb */ color: rgb(175, 168, 250);
/* oklch */ color: oklch(76.9% 0.116 287.2);
Tailwind
colors: {
  custom: {
    50: '#c8c1fc',
    500: '#afa8fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa8fa;
$custom-light: #c8c1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8fa",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 250
  },
  "hsl": {
    "h": 245.122,
    "s": 89.13,
    "l": 81.961
  },
  "oklch": {
    "l": 0.76852,
    "c": 0.11616,
    "h": 287.2
  },
  "luminance": 0.44021
}

Semantic roles & 50–950 ramp

primary
#AFA8FA
secondary
#F3F5D6
accent
#E600D2
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8FA

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

Preview Lab → · Contrast checker → · Palette generator →

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