#AFA7EB#AFA7EB

#AFA7EB is a light, moderate blue. Relative luminance 0.427; OKLCH L 76.0% C 0.097 H 289.3°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA7EB
RGBrgb(175, 167, 235)
HSLhsl(247, 63%, 79%)
HSVhsv(247, 29%, 92%)
CMYKcmyk(25.5%, 28.9%, 0%, 7.8%)
CIE-LABlab(71.38, 17.30, -33.05)
CIE-LCHlch(71.38, 37.30, 297.63°)
OKLaboklab(75.99% 0.032 -0.0914)
OKLCHoklch(75.99% 0.097 289.3)
XYZxyz(46.4896, 42.7488, 84.3832)
Luminance0.4275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7EB #E3EBA7
analogous
#A7C1EB #AFA7EB #D1A7EB
triadic
#AFA7EB #EBAFA7 #A7EBAF
tetradic
#AFA7EB #EBA7C1 #E3EBA7 #A7EBD1
square
#AFA7EB #EBA7C1 #E3EBA7 #A7EBD1
split-complementary
#AFA7EB #EBD1A7 #C1EBA7
monochromatic
#5443D4 #8275E0 #AFA7EB #DCD9F6 #E8E6F9

Accessibility & contrast

On white

2.20
#AFA7EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#AFA7EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7EB
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7EB#FFFFFF#000000##000000
##AFA7EB1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B0EE
Deuteranopia (green-blind)
#95ADE9
Tritanopia (blue-blind)
#A2B3BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7eb;
/* rgb */ color: rgb(175, 167, 235);
/* oklch */ color: oklch(76.0% 0.097 289.3);
Tailwind
colors: {
  custom: {
    50: '#c8c1f1',
    500: '#afa7eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa7eb;
$custom-light: #c8c1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7eb",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 235
  },
  "hsl": {
    "h": 247.059,
    "s": 62.963,
    "l": 78.824
  },
  "oklch": {
    "l": 0.75991,
    "c": 0.0968,
    "h": 289.3
  },
  "luminance": 0.4275
}

Semantic roles & 50–950 ramp

primary
#AFA7EB
secondary
#EEF1DA
accent
#CB1BB6
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7EB

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

Preview Lab → · Contrast checker → · Palette generator →

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