#AFA7FB#AFA7FB

#AFA7FB is a light, moderate blue. Relative luminance 0.437; OKLCH L 76.7% C 0.119 H 287.6°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#AFA7FB
RGBrgb(175, 167, 251)
HSLhsl(246, 91%, 82%)
HSVhsv(246, 33%, 98%)
CMYKcmyk(30.3%, 33.5%, 0%, 1.6%)
CIE-LABlab(72.04, 21.19, -40.73)
CIE-LCHlch(72.04, 45.91, 297.49°)
OKLaboklab(76.71% 0.036 -0.1134)
OKLCHoklch(76.71% 0.119 287.6)
XYZxyz(48.9060, 43.7153, 97.1093)
Luminance0.4372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7FB #F3FBA7
analogous
#A7C9FB #AFA7FB #D9A7FB
triadic
#AFA7FB #FBAFA7 #A7FBAF
tetradic
#AFA7FB #FBA7C9 #F3FBA7 #A7FBD9
square
#AFA7FB #FBA7C9 #F3FBA7 #A7FBD9
split-complementary
#AFA7FB #FBD9A7 #C9FBA7
monochromatic
#4532F6 #7A6CF8 #AFA7FB #E4E2FE #E4E2FE

Accessibility & contrast

On white

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

On black

9.74
#AFA7FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7FB
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7FB#FFFFFF#000000##000000
##AFA7FB1.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB3FE
Deuteranopia (green-blind)
#8EAEF9
Tritanopia (blue-blind)
#9DB6C6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa7fb;
/* rgb */ color: rgb(175, 167, 251);
/* oklch */ color: oklch(76.7% 0.119 287.6);
Tailwind
colors: {
  custom: {
    50: '#c9c1fd',
    500: '#afa7fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa7fb;
$custom-light: #c9c1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7fb",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 251
  },
  "hsl": {
    "h": 245.714,
    "s": 91.304,
    "l": 81.961
  },
  "oklch": {
    "l": 0.76709,
    "c": 0.119,
    "h": 287.6
  },
  "luminance": 0.43716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA7FB

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

Preview Lab → · Contrast checker → · Palette generator →

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