#AFA8F0#AFA8F0

#AFA8F0 is a light, moderate blue. Relative luminance 0.434; OKLCH L 76.4% C 0.102 H 288.2°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#AFA8F0
RGBrgb(175, 168, 240)
HSLhsl(246, 71%, 80%)
HSVhsv(246, 30%, 94%)
CMYKcmyk(27.1%, 30%, 0%, 5.9%)
CIE-LABlab(71.83, 17.94, -35.07)
CIE-LCHlch(71.83, 39.39, 297.08°)
OKLaboklab(76.4% 0.0319 -0.0972)
OKLCHoklch(76.4% 0.102 288.2)
XYZxyz(47.4060, 43.4096, 88.3024)
Luminance0.4341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8F0 #E9F0A8
analogous
#A8C5F0 #AFA8F0 #D3A8F0
triadic
#AFA8F0 #F0AFA8 #A8F0AF
tetradic
#AFA8F0 #F0A8C5 #E9F0A8 #A8F0D3
square
#AFA8F0 #F0A8C5 #E9F0A8 #A8F0D3
split-complementary
#AFA8F0 #F0D3A8 #C5F0A8
monochromatic
#4F40DE #7F74E7 #AFA8F0 #DFDCF9 #E7E5FA

Accessibility & contrast

On white

2.17
#AFA8F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#AFA8F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8F0
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8F0#FFFFFF#000000##000000
##AFA8F01.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B2F3
Deuteranopia (green-blind)
#94AEEE
Tritanopia (blue-blind)
#A0B5C2
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8f0;
/* rgb */ color: rgb(175, 168, 240);
/* oklch */ color: oklch(76.4% 0.102 288.2);
Tailwind
colors: {
  custom: {
    50: '#c8c1f5',
    500: '#afa8f0',
    950: '#000000',
  },
}
SCSS
$custom: #afa8f0;
$custom-light: #c8c1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8f0",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 240
  },
  "hsl": {
    "h": 245.833,
    "s": 70.588,
    "l": 80
  },
  "oklch": {
    "l": 0.76402,
    "c": 0.10229,
    "h": 288.2
  },
  "luminance": 0.4341
}

Semantic roles & 50–950 ramp

primary
#AFA8F0
secondary
#F0F2D9
accent
#D313C0
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8F0

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

Preview Lab → · Contrast checker → · Palette generator →

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