#AFA7F9#AFA7F9

#AFA7F9 is a light, moderate blue. Relative luminance 0.436; OKLCH L 76.6% C 0.116 H 287.8°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFA7F9
RGBrgb(175, 167, 249)
HSLhsl(246, 87%, 82%)
HSVhsv(246, 33%, 98%)
CMYKcmyk(29.7%, 32.9%, 0%, 2.4%)
CIE-LABlab(71.95, 20.69, -39.77)
CIE-LCHlch(71.95, 44.83, 297.49°)
OKLaboklab(76.62% 0.0355 -0.1107)
OKLCHoklch(76.62% 0.116 287.8)
XYZxyz(48.5924, 43.5899, 95.4577)
Luminance0.4359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7F9 #F1F9A7
analogous
#A7C8F9 #AFA7F9 #D8A7F9
triadic
#AFA7F9 #F9AFA7 #A7F9AF
tetradic
#AFA7F9 #F9A7C8 #F1F9A7 #A7F9D8
square
#AFA7F9 #F9A7C8 #F1F9A7 #A7F9D8
split-complementary
#AFA7F9 #F9D8A7 #C8F9A7
monochromatic
#4734F1 #7B6EF5 #AFA7F9 #E3E0FD #E5E2FD

Accessibility & contrast

On white

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

On black

9.72
#AFA7F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7F9
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7F9#FFFFFF#000000##000000
##AFA7F91.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#90B2FC
Deuteranopia (green-blind)
#8FAEF7
Tritanopia (blue-blind)
#9DB6C5
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa7f9;
/* rgb */ color: rgb(175, 167, 249);
/* oklch */ color: oklch(76.6% 0.116 287.8);
Tailwind
colors: {
  custom: {
    50: '#c8c1fb',
    500: '#afa7f9',
    950: '#000000',
  },
}
SCSS
$custom: #afa7f9;
$custom-light: #c8c1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7f9",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 249
  },
  "hsl": {
    "h": 245.854,
    "s": 87.234,
    "l": 81.569
  },
  "oklch": {
    "l": 0.76617,
    "c": 0.11624,
    "h": 287.8
  },
  "luminance": 0.43591
}

Semantic roles & 50–950 ramp

primary
#AFA7F9
secondary
#F2F5D6
accent
#E402CE
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7F9

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

Preview Lab → · Contrast checker → · Palette generator →

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