#AFA8EF#AFA8EF

#AFA8EF is a light, moderate blue. Relative luminance 0.434; OKLCH L 76.4% C 0.101 H 288.3°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#AFA8EF
RGBrgb(175, 168, 239)
HSLhsl(246, 69%, 80%)
HSVhsv(246, 30%, 94%)
CMYKcmyk(26.8%, 29.7%, 0%, 6.3%)
CIE-LABlab(71.79, 17.70, -34.59)
CIE-LCHlch(71.79, 38.86, 297.09°)
OKLaboklab(76.36% 0.0317 -0.0958)
OKLCHoklch(76.36% 0.101 288.3)
XYZxyz(47.2579, 43.3503, 87.5222)
Luminance0.4335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8EF #E8EFA8
analogous
#A8C5EF #AFA8EF #D2A8EF
triadic
#AFA8EF #EFAFA8 #A8EFAF
tetradic
#AFA8EF #EFA8C5 #E8EFA8 #A8EFD2
square
#AFA8EF #EFA8C5 #E8EFA8 #A8EFD2
split-complementary
#AFA8EF #EFD2A8 #C5EFA8
monochromatic
#5041DC #7F74E5 #AFA8EF #DFDCF9 #E7E5FA

Accessibility & contrast

On white

2.17
#AFA8EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#AFA8EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8EF
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8EF#FFFFFF#000000##000000
##AFA8EF1.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B2F2
Deuteranopia (green-blind)
#94AEED
Tritanopia (blue-blind)
#A0B4C1
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8ef;
/* rgb */ color: rgb(175, 168, 239);
/* oklch */ color: oklch(76.4% 0.101 288.3);
Tailwind
colors: {
  custom: {
    50: '#c8c1f4',
    500: '#afa8ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ef;
$custom-light: #c8c1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ef",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 239
  },
  "hsl": {
    "h": 245.915,
    "s": 68.932,
    "l": 79.804
  },
  "oklch": {
    "l": 0.76358,
    "c": 0.1009,
    "h": 288.3
  },
  "luminance": 0.43351
}

Semantic roles & 50–950 ramp

primary
#AFA8EF
secondary
#EFF2D9
accent
#D115BE
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8EF

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

Preview Lab → · Contrast checker → · Palette generator →

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