#AFA8FC#AFA8FC

#AFA8FC is a light, moderate blue. Relative luminance 0.441; OKLCH L 76.9% C 0.119 H 287.1°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#AFA8FC
RGBrgb(175, 168, 252)
HSLhsl(245, 93%, 82%)
HSVhsv(245, 33%, 99%)
CMYKcmyk(30.6%, 33.3%, 0%, 1.2%)
CIE-LABlab(72.33, 20.88, -40.82)
CIE-LCHlch(72.33, 45.85, 297.09°)
OKLaboklab(76.94% 0.0349 -0.1137)
OKLCHoklch(76.94% 0.119 287.1)
XYZxyz(49.2479, 44.1463, 98.0030)
Luminance0.4415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FC #F5FCA8
analogous
#A8CBFC #AFA8FC #D9A8FC
triadic
#AFA8FC #FCAFA8 #A8FCAF
tetradic
#AFA8FC #FCA8CB #F5FCA8 #A8FCD9
square
#AFA8FC #FCA8CB #F5FCA8 #A8FCD9
split-complementary
#AFA8FC #FCD9A8 #CBFCA8
monochromatic
#4232F8 #796DFA #AFA8FC #E4E1FE #E4E1FE

Accessibility & contrast

On white

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

On black

9.83
#AFA8FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FC
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FC#FFFFFF#000000##000000
##AFA8FC1.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#90B3FF
Deuteranopia (green-blind)
#8EAFFA
Tritanopia (blue-blind)
#9CB7C7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa8fc;
/* rgb */ color: rgb(175, 168, 252);
/* oklch */ color: oklch(76.9% 0.119 287.1);
Tailwind
colors: {
  custom: {
    50: '#c9c1fd',
    500: '#afa8fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa8fc;
$custom-light: #c9c1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8fc",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 252
  },
  "hsl": {
    "h": 245,
    "s": 93.333,
    "l": 82.353
  },
  "oklch": {
    "l": 0.76945,
    "c": 0.11893,
    "h": 287.1
  },
  "luminance": 0.44147
}

Semantic roles & 50–950 ramp

primary
#AFA8FC
secondary
#F3F6D5
accent
#E600D2
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8FC

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

Preview Lab → · Contrast checker → · Palette generator →

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