#AFA8EE#AFA8EE

#AFA8EE is a light, moderate blue. Relative luminance 0.433; OKLCH L 76.3% C 0.100 H 288.4°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA8EE
RGBrgb(175, 168, 238)
HSLhsl(246, 67%, 80%)
HSVhsv(246, 29%, 93%)
CMYKcmyk(26.5%, 29.4%, 0%, 6.7%)
CIE-LABlab(71.75, 17.45, -34.11)
CIE-LCHlch(71.75, 38.32, 297.10°)
OKLaboklab(76.31% 0.0314 -0.0944)
OKLCHoklch(76.31% 0.1 288.4)
XYZxyz(47.1106, 43.2914, 86.7464)
Luminance0.4329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8EE #E7EEA8
analogous
#A8C4EE #AFA8EE #D2A8EE
triadic
#AFA8EE #EEAFA8 #A8EEAF
tetradic
#AFA8EE #EEA8C4 #E7EEA8 #A8EED2
square
#AFA8EE #EEA8C4 #E7EEA8 #A8EED2
split-complementary
#AFA8EE #EED2A8 #C4EEA8
monochromatic
#5142DA #8075E4 #AFA8EE #DEDBF8 #E7E5FA

Accessibility & contrast

On white

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

On black

9.66
#AFA8EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8EE
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8EE#FFFFFF#000000##000000
##AFA8EE1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B1F1
Deuteranopia (green-blind)
#95AEEC
Tritanopia (blue-blind)
#A1B4C1
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8ee;
/* rgb */ color: rgb(175, 168, 238);
/* oklch */ color: oklch(76.3% 0.100 288.4);
Tailwind
colors: {
  custom: {
    50: '#c8c1f3',
    500: '#afa8ee',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ee;
$custom-light: #c8c1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ee",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 238
  },
  "hsl": {
    "h": 246,
    "s": 67.308,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76314,
    "c": 0.09951,
    "h": 288.4
  },
  "luminance": 0.43292
}

Semantic roles & 50–950 ramp

primary
#AFA8EE
secondary
#EFF2D9
accent
#CF16BD
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8EE

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

Preview Lab → · Contrast checker → · Palette generator →

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