#AFA8ED#AFA8ED

#AFA8ED is a light, moderate blue. Relative luminance 0.432; OKLCH L 76.3% C 0.098 H 288.5°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#AFA8ED
RGBrgb(175, 168, 237)
HSLhsl(246, 66%, 79%)
HSVhsv(246, 29%, 93%)
CMYKcmyk(26.2%, 29.1%, 0%, 7.1%)
CIE-LABlab(71.71, 17.22, -33.63)
CIE-LCHlch(71.71, 37.78, 297.11°)
OKLaboklab(76.27% 0.0311 -0.093)
OKLCHoklch(76.27% 0.098 288.5)
XYZxyz(46.9641, 43.2328, 85.9748)
Luminance0.4323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8ED #E6EDA8
analogous
#A8C4ED #AFA8ED #D2A8ED
triadic
#AFA8ED #EDAFA8 #A8EDAF
tetradic
#AFA8ED #EDA8C4 #E6EDA8 #A8EDD2
square
#AFA8ED #EDA8C4 #E6EDA8 #A8EDD2
split-complementary
#AFA8ED #EDD2A8 #C4EDA8
monochromatic
#5243D8 #8075E3 #AFA8ED #DEDBF7 #E8E6FA

Accessibility & contrast

On white

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

On black

9.65
#AFA8ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8ED
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8ED#FFFFFF#000000##000000
##AFA8ED1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#96B1F0
Deuteranopia (green-blind)
#95AEEB
Tritanopia (blue-blind)
#A1B4C0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8ed;
/* rgb */ color: rgb(175, 168, 237);
/* oklch */ color: oklch(76.3% 0.098 288.5);
Tailwind
colors: {
  custom: {
    50: '#c8c1f3',
    500: '#afa8ed',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ed;
$custom-light: #c8c1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ed",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 237
  },
  "hsl": {
    "h": 246.087,
    "s": 65.714,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76271,
    "c": 0.09811,
    "h": 288.5
  },
  "luminance": 0.43234
}

Semantic roles & 50–950 ramp

primary
#AFA8ED
secondary
#EFF1DA
accent
#CE18BB
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8ED

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

Preview Lab → · Contrast checker → · Palette generator →

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