#AFA7EE#AFA7EE

#AFA7EE is a light, moderate blue. Relative luminance 0.429; OKLCH L 76.1% C 0.101 H 288.9°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#AFA7EE
RGBrgb(175, 167, 238)
HSLhsl(247, 68%, 79%)
HSVhsv(247, 30%, 93%)
CMYKcmyk(26.5%, 29.8%, 0%, 6.7%)
CIE-LABlab(71.50, 18.01, -34.50)
CIE-LCHlch(71.50, 38.92, 297.57°)
OKLaboklab(76.12% 0.0328 -0.0955)
OKLCHoklch(76.12% 0.101 288.9)
XYZxyz(46.9267, 42.9236, 86.6851)
Luminance0.4292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7EE #E6EEA7
analogous
#A7C3EE #AFA7EE #D3A7EE
triadic
#AFA7EE #EEAFA7 #A7EEAF
tetradic
#AFA7EE #EEA7C3 #E6EEA7 #A7EED3
square
#AFA7EE #EEA7C3 #E6EEA7 #A7EED3
split-complementary
#AFA7EE #EED3A7 #C3EEA7
monochromatic
#5240DA #8074E4 #AFA7EE #DEDAF8 #E8E5FA

Accessibility & contrast

On white

2.19
#AFA7EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#AFA7EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7EE
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7EE#FFFFFF#000000##000000
##AFA7EE1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B1F1
Deuteranopia (green-blind)
#94ADEC
Tritanopia (blue-blind)
#A1B3C0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7ee;
/* rgb */ color: rgb(175, 167, 238);
/* oklch */ color: oklch(76.1% 0.101 288.9);
Tailwind
colors: {
  custom: {
    50: '#c8c1f3',
    500: '#afa7ee',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ee;
$custom-light: #c8c1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ee",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 238
  },
  "hsl": {
    "h": 246.761,
    "s": 67.619,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76122,
    "c": 0.10099,
    "h": 288.9
  },
  "luminance": 0.42924
}

Semantic roles & 50–950 ramp

primary
#AFA7EE
secondary
#EFF2D9
accent
#D016BB
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7EE

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

Preview Lab → · Contrast checker → · Palette generator →

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