#AFA8FD#AFA8FD

#AFA8FD is a light, vivid blue. Relative luminance 0.442; OKLCH L 77.0% C 0.120 H 287.0°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#AFA8FD
RGBrgb(175, 168, 253)
HSLhsl(245, 96%, 83%)
HSVhsv(245, 34%, 99%)
CMYKcmyk(30.8%, 33.6%, 0%, 0.8%)
CIE-LABlab(72.37, 21.13, -41.29)
CIE-LCHlch(72.37, 46.38, 297.10°)
OKLaboklab(76.99% 0.0351 -0.1151)
OKLCHoklch(76.99% 0.12 287)
XYZxyz(49.4068, 44.2099, 98.8397)
Luminance0.4421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FD #F6FDA8
analogous
#A8CCFD #AFA8FD #D9A8FD
triadic
#AFA8FD #FDAFA8 #A8FDAF
tetradic
#AFA8FD #FDA8CC #F6FDA8 #A8FDD9
square
#AFA8FD #FDA8CC #F6FDA8 #A8FDD9
split-complementary
#AFA8FD #FDD9A8 #CCFDA8
monochromatic
#4130FA #786CFC #AFA8FD #E3E1FE #E3E1FE

Accessibility & contrast

On white

2.13
#AFA8FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#AFA8FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FD
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FD#FFFFFF#000000##000000
##AFA8FD1.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB4FF
Deuteranopia (green-blind)
#8EAFFB
Tritanopia (blue-blind)
#9CB7C7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa8fd;
/* rgb */ color: rgb(175, 168, 253);
/* oklch */ color: oklch(77.0% 0.120 287.0);
Tailwind
colors: {
  custom: {
    50: '#c9c1fe',
    500: '#afa8fd',
    950: '#000000',
  },
}
SCSS
$custom: #afa8fd;
$custom-light: #c9c1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8fd",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 253
  },
  "hsl": {
    "h": 244.941,
    "s": 95.506,
    "l": 82.549
  },
  "oklch": {
    "l": 0.76991,
    "c": 0.12031,
    "h": 287
  },
  "luminance": 0.44211
}

Semantic roles & 50–950 ramp

primary
#AFA8FD
secondary
#F4F7D4
accent
#E600D3
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA8FD

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

Preview Lab → · Contrast checker → · Palette generator →

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