#AFA8F2#AFA8F2

#AFA8F2 is a light, moderate blue. Relative luminance 0.435; OKLCH L 76.5% C 0.105 H 288.0°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA8F2
RGBrgb(175, 168, 242)
HSLhsl(246, 74%, 80%)
HSVhsv(246, 31%, 95%)
CMYKcmyk(27.7%, 30.6%, 0%, 5.1%)
CIE-LABlab(71.91, 18.42, -36.04)
CIE-LCHlch(71.91, 40.47, 297.07°)
OKLaboklab(76.49% 0.0324 -0.0999)
OKLCHoklch(76.49% 0.105 288)
XYZxyz(47.7048, 43.5291, 89.8758)
Luminance0.4353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8F2 #EBF2A8
analogous
#A8C6F2 #AFA8F2 #D4A8F2
triadic
#AFA8F2 #F2AFA8 #A8F2AF
tetradic
#AFA8F2 #F2A8C6 #EBF2A8 #A8F2D4
square
#AFA8F2 #F2A8C6 #EBF2A8 #A8F2D4
split-complementary
#AFA8F2 #F2D4A8 #C6F2A8
monochromatic
#4D3EE2 #7E73EA #AFA8F2 #E0DDFA #E7E4FB

Accessibility & contrast

On white

2.16
#AFA8F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#AFA8F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8F2
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8F2#FFFFFF#000000##000000
##AFA8F21.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B2F5
Deuteranopia (green-blind)
#93AEF0
Tritanopia (blue-blind)
#A0B5C2
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8f2;
/* rgb */ color: rgb(175, 168, 242);
/* oklch */ color: oklch(76.5% 0.105 288.0);
Tailwind
colors: {
  custom: {
    50: '#c8c1f6',
    500: '#afa8f2',
    950: '#000000',
  },
}
SCSS
$custom: #afa8f2;
$custom-light: #c8c1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8f2",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 242
  },
  "hsl": {
    "h": 245.676,
    "s": 74,
    "l": 80.392
  },
  "oklch": {
    "l": 0.76491,
    "c": 0.10507,
    "h": 288
  },
  "luminance": 0.4353
}

Semantic roles & 50–950 ramp

primary
#AFA8F2
secondary
#F0F3D8
accent
#D60FC3
background
#FCFBFF
surface
#F8F7FE
border
#D1D0D6
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8F2

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

Preview Lab → · Contrast checker → · Palette generator →

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