#AFA7FC#AFA7FC

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

Color values

HEX#AFA7FC
RGBrgb(175, 167, 252)
HSLhsl(246, 93%, 82%)
HSVhsv(246, 34%, 99%)
CMYKcmyk(30.6%, 33.7%, 0%, 1.2%)
CIE-LABlab(72.08, 21.44, -41.20)
CIE-LCHlch(72.08, 46.44, 297.49°)
OKLaboklab(76.76% 0.0362 -0.1148)
OKLCHoklch(76.76% 0.12 287.5)
XYZxyz(49.0640, 43.7785, 97.9417)
Luminance0.4378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7FC #F4FCA7
analogous
#A7CAFC #AFA7FC #DAA7FC
triadic
#AFA7FC #FCAFA7 #A7FCAF
tetradic
#AFA7FC #FCA7CA #F4FCA7 #A7FCDA
square
#AFA7FC #FCA7CA #F4FCA7 #A7FCDA
split-complementary
#AFA7FC #FCDAA7 #CAFCA7
monochromatic
#4331F8 #796CFA #AFA7FC #E4E1FE #E4E1FE

Accessibility & contrast

On white

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

On black

9.76
#AFA7FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7FC
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7FC#FFFFFF#000000##000000
##AFA7FC1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB3FF
Deuteranopia (green-blind)
#8DAFFA
Tritanopia (blue-blind)
#9CB6C6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa7fc;
/* rgb */ color: rgb(175, 167, 252);
/* oklch */ color: oklch(76.8% 0.120 287.5);
Tailwind
colors: {
  custom: {
    50: '#c9c1fd',
    500: '#afa7fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa7fc;
$custom-light: #c9c1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7fc",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 252
  },
  "hsl": {
    "h": 245.647,
    "s": 93.407,
    "l": 82.157
  },
  "oklch": {
    "l": 0.76756,
    "c": 0.12037,
    "h": 287.5
  },
  "luminance": 0.4378
}

Semantic roles & 50–950 ramp

primary
#AFA7FC
secondary
#F3F6D5
accent
#E600D0
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7FC

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

Preview Lab → · Contrast checker → · Palette generator →

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