#AFA7FD#AFA7FD

#AFA7FD is a light, vivid blue. Relative luminance 0.438; OKLCH L 76.8% C 0.122 H 287.4°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#AFA7FD
RGBrgb(175, 167, 253)
HSLhsl(246, 96%, 82%)
HSVhsv(246, 34%, 99%)
CMYKcmyk(30.8%, 34%, 0%, 0.8%)
CIE-LABlab(72.12, 21.69, -41.68)
CIE-LCHlch(72.12, 46.98, 297.49°)
OKLaboklab(76.8% 0.0365 -0.1162)
OKLCHoklch(76.8% 0.122 287.4)
XYZxyz(49.2229, 43.8421, 98.7784)
Luminance0.4384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7FD #F5FDA7
analogous
#A7CAFD #AFA7FD #DAA7FD
triadic
#AFA7FD #FDAFA7 #A7FDAF
tetradic
#AFA7FD #FDA7CA #F5FDA7 #A7FDDA
square
#AFA7FD #FDA7CA #F5FDA7 #A7FDDA
split-complementary
#AFA7FD #FDDAA7 #CAFDA7
monochromatic
#422FFA #796BFC #AFA7FD #E4E1FE #E4E1FE

Accessibility & contrast

On white

2.15
#AFA7FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.77
#AFA7FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7FD
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7FD#FFFFFF#000000##000000
##AFA7FD1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB3FF
Deuteranopia (green-blind)
#8DAFFB
Tritanopia (blue-blind)
#9CB7C6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa7fd;
/* rgb */ color: rgb(175, 167, 253);
/* oklch */ color: oklch(76.8% 0.122 287.4);
Tailwind
colors: {
  custom: {
    50: '#c9c1fe',
    500: '#afa7fd',
    950: '#000000',
  },
}
SCSS
$custom: #afa7fd;
$custom-light: #c9c1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7fd",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 253
  },
  "hsl": {
    "h": 245.581,
    "s": 95.556,
    "l": 82.353
  },
  "oklch": {
    "l": 0.76803,
    "c": 0.12175,
    "h": 287.4
  },
  "luminance": 0.43843
}

Semantic roles & 50–950 ramp

primary
#AFA7FD
secondary
#F3F7D4
accent
#E600D0
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA7FD

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

Preview Lab → · Contrast checker → · Palette generator →

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