#AFA8EA#AFA8EA

#AFA8EA is a light, moderate blue. Relative luminance 0.431; OKLCH L 76.1% C 0.094 H 288.8°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#AFA8EA
RGBrgb(175, 168, 234)
HSLhsl(246, 61%, 79%)
HSVhsv(246, 28%, 92%)
CMYKcmyk(25.2%, 28.2%, 0%, 8.2%)
CIE-LABlab(71.59, 16.50, -32.17)
CIE-LCHlch(71.59, 36.16, 297.15°)
OKLaboklab(76.14% 0.0303 -0.0889)
OKLCHoklch(76.14% 0.094 288.8)
XYZxyz(46.5295, 43.0589, 83.6857)
Luminance0.4306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8EA #E3EAA8
analogous
#A8C2EA #AFA8EA #D0A8EA
triadic
#AFA8EA #EAAFA8 #A8EAAF
tetradic
#AFA8EA #EAA8C2 #E3EAA8 #A8EAD0
square
#AFA8EA #EAA8C2 #E3EAA8 #A8EAD0
split-complementary
#AFA8EA #EAD0A8 #C2EAA8
monochromatic
#5445D2 #8277DE #AFA8EA #DCD9F6 #E8E6F9

Accessibility & contrast

On white

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

On black

9.61
#AFA8EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8EA
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8EA#FFFFFF#000000##000000
##AFA8EA1.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97B1ED
Deuteranopia (green-blind)
#96AEE8
Tritanopia (blue-blind)
#A2B3BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa8ea;
/* rgb */ color: rgb(175, 168, 234);
/* oklch */ color: oklch(76.1% 0.094 288.8);
Tailwind
colors: {
  custom: {
    50: '#c8c1f1',
    500: '#afa8ea',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ea;
$custom-light: #c8c1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ea",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 234
  },
  "hsl": {
    "h": 246.364,
    "s": 61.111,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76141,
    "c": 0.09392,
    "h": 288.8
  },
  "luminance": 0.4306
}

Semantic roles & 50–950 ramp

primary
#AFA8EA
secondary
#EEF0DB
accent
#C91DB7
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA8EA

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

Preview Lab → · Contrast checker → · Palette generator →

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