#AFA6FA#AFA6FA

#AFA6FA is a light, moderate blue. Relative luminance 0.433; OKLCH L 76.5% C 0.119 H 288.1°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FA
RGBrgb(175, 166, 250)
HSLhsl(246, 89%, 82%)
HSVhsv(246, 34%, 98%)
CMYKcmyk(30%, 33.6%, 0%, 2%)
CIE-LABlab(71.75, 21.50, -40.63)
CIE-LCHlch(71.75, 45.97, 297.89°)
OKLaboklab(76.47% 0.0371 -0.1131)
OKLCHoklch(76.47% 0.119 288.1)
XYZxyz(48.5663, 43.2874, 96.2205)
Luminance0.4329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FA #F1FAA6
analogous
#A6C7FA #AFA6FA #D9A6FA
triadic
#AFA6FA #FAAFA6 #A6FAAF
tetradic
#AFA6FA #FAA6C7 #F1FAA6 #A6FAD9
square
#AFA6FA #FAA6C7 #F1FAA6 #A6FAD9
split-complementary
#AFA6FA #FAD9A6 #C7FAA6
monochromatic
#4732F3 #7B6CF7 #AFA6FA #E3E0FD #E5E2FD

Accessibility & contrast

On white

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

On black

9.66
#AFA6FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FA
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FA#FFFFFF#000000##000000
##AFA6FA1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB2FD
Deuteranopia (green-blind)
#8DAEF8
Tritanopia (blue-blind)
#9DB5C5
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa6fa;
/* rgb */ color: rgb(175, 166, 250);
/* oklch */ color: oklch(76.5% 0.119 288.1);
Tailwind
colors: {
  custom: {
    50: '#c9c0fc',
    500: '#afa6fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa6fa;
$custom-light: #c9c0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6fa",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 250
  },
  "hsl": {
    "h": 246.429,
    "s": 89.362,
    "l": 81.569
  },
  "oklch": {
    "l": 0.76474,
    "c": 0.11907,
    "h": 288.1
  },
  "luminance": 0.43289
}

Semantic roles & 50–950 ramp

primary
#AFA6FA
secondary
#F2F5D6
accent
#E600CD
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6FA

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

Preview Lab → · Contrast checker → · Palette generator →

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