#AFA6EE#AFA6EE

#AFA6EE is a light, moderate blue. Relative luminance 0.426; OKLCH L 75.9% C 0.102 H 289.4°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA6EE
RGBrgb(175, 166, 238)
HSLhsl(248, 68%, 79%)
HSVhsv(248, 30%, 93%)
CMYKcmyk(26.5%, 30.3%, 0%, 6.7%)
CIE-LABlab(71.25, 18.57, -34.88)
CIE-LCHlch(71.25, 39.52, 298.03°)
OKLaboklab(75.93% 0.0341 -0.0966)
OKLCHoklch(75.93% 0.102 289.4)
XYZxyz(46.7442, 42.5586, 86.6242)
Luminance0.4256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6EE #E5EEA6
analogous
#A6C1EE #AFA6EE #D3A6EE
triadic
#AFA6EE #EEAFA6 #A6EEAF
tetradic
#AFA6EE #EEA6C1 #E5EEA6 #A6EED3
square
#AFA6EE #EEA6C1 #E5EEA6 #A6EED3
split-complementary
#AFA6EE #EED3A6 #C1EEA6
monochromatic
#533FDA #8173E4 #AFA6EE #DDD9F8 #E8E5FA

Accessibility & contrast

On white

2.21
#AFA6EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#AFA6EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6EE
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6EE#FFFFFF#000000##000000
##AFA6EE1.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B0F1
Deuteranopia (green-blind)
#93ADEC
Tritanopia (blue-blind)
#A1B2C0
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa6ee;
/* rgb */ color: rgb(175, 166, 238);
/* oklch */ color: oklch(75.9% 0.102 289.4);
Tailwind
colors: {
  custom: {
    50: '#c8c0f3',
    500: '#afa6ee',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ee;
$custom-light: #c8c0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ee",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 238
  },
  "hsl": {
    "h": 247.5,
    "s": 67.925,
    "l": 79.216
  },
  "oklch": {
    "l": 0.75931,
    "c": 0.10248,
    "h": 289.4
  },
  "luminance": 0.42559
}

Semantic roles & 50–950 ramp

primary
#AFA6EE
secondary
#EFF2D9
accent
#D016B9
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6EE

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

Preview Lab → · Contrast checker → · Palette generator →

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