#AFA8FB#AFA8FB

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

Color values

HEX#AFA8FB
RGBrgb(175, 168, 251)
HSLhsl(245, 91%, 82%)
HSVhsv(245, 33%, 98%)
CMYKcmyk(30.3%, 33.1%, 0%, 1.6%)
CIE-LABlab(72.28, 20.63, -40.34)
CIE-LCHlch(72.28, 45.31, 297.08°)
OKLaboklab(76.9% 0.0347 -0.1123)
OKLCHoklch(76.9% 0.118 287.2)
XYZxyz(49.0899, 44.0831, 97.1706)
Luminance0.4408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FB #F4FBA8
analogous
#A8CBFB #AFA8FB #D8A8FB
triadic
#AFA8FB #FBAFA8 #A8FBAF
tetradic
#AFA8FB #FBA8CB #F4FBA8 #A8FBD8
square
#AFA8FB #FBA8CB #F4FBA8 #A8FBD8
split-complementary
#AFA8FB #FBD8A8 #CBFBA8
monochromatic
#4333F6 #796DF8 #AFA8FB #E4E2FE #E4E2FE

Accessibility & contrast

On white

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

On black

9.82
#AFA8FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FB
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FB#FFFFFF#000000##000000
##AFA8FB1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#90B3FE
Deuteranopia (green-blind)
#8FAFF9
Tritanopia (blue-blind)
#9DB7C6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa8fb;
/* rgb */ color: rgb(175, 168, 251);
/* oklch */ color: oklch(76.9% 0.118 287.2);
Tailwind
colors: {
  custom: {
    50: '#c9c1fd',
    500: '#afa8fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa8fb;
$custom-light: #c9c1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8fb",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 251
  },
  "hsl": {
    "h": 245.06,
    "s": 91.209,
    "l": 82.157
  },
  "oklch": {
    "l": 0.76898,
    "c": 0.11755,
    "h": 287.2
  },
  "luminance": 0.44084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA8FB

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

Preview Lab → · Contrast checker → · Palette generator →

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