#AFA8EB#AFA8EB

#AFA8EB is a light, moderate blue. Relative luminance 0.431; OKLCH L 76.2% C 0.095 H 288.7°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA8EB
RGBrgb(175, 168, 235)
HSLhsl(246, 63%, 79%)
HSVhsv(246, 29%, 92%)
CMYKcmyk(25.5%, 28.5%, 0%, 7.8%)
CIE-LABlab(71.63, 16.74, -32.66)
CIE-LCHlch(71.63, 36.70, 297.13°)
OKLaboklab(76.18% 0.0306 -0.0903)
OKLCHoklch(76.18% 0.095 288.7)
XYZxyz(46.6735, 43.1166, 84.4445)
Luminance0.4312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8EB #E4EBA8
analogous
#A8C3EB #AFA8EB #D1A8EB
triadic
#AFA8EB #EBAFA8 #A8EBAF
tetradic
#AFA8EB #EBA8C3 #E4EBA8 #A8EBD1
square
#AFA8EB #EBA8C3 #E4EBA8 #A8EBD1
split-complementary
#AFA8EB #EBD1A8 #C3EBA8
monochromatic
#5344D4 #8176E0 #AFA8EB #DDDAF6 #E8E6F9

Accessibility & contrast

On white

2.18
#AFA8EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#AFA8EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8EB
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8EB#FFFFFF#000000##000000
##AFA8EB1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#97B1EE
Deuteranopia (green-blind)
#96AEE9
Tritanopia (blue-blind)
#A2B3C0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa8eb;
/* rgb */ color: rgb(175, 168, 235);
/* oklch */ color: oklch(76.2% 0.095 288.7);
Tailwind
colors: {
  custom: {
    50: '#c8c1f1',
    500: '#afa8eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa8eb;
$custom-light: #c8c1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8eb",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 235
  },
  "hsl": {
    "h": 246.269,
    "s": 62.617,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76184,
    "c": 0.09532,
    "h": 288.7
  },
  "luminance": 0.43117
}

Semantic roles & 50–950 ramp

primary
#AFA8EB
secondary
#EEF1DA
accent
#CA1BB8
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8EB

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

Preview Lab → · Contrast checker → · Palette generator →

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