#AFA7EA#AFA7EA

#AFA7EA is a light, moderate blue. Relative luminance 0.427; OKLCH L 75.9% C 0.095 H 289.4°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA7EA
RGBrgb(175, 167, 234)
HSLhsl(247, 61%, 79%)
HSVhsv(247, 29%, 92%)
CMYKcmyk(25.2%, 28.6%, 0%, 8.2%)
CIE-LABlab(71.34, 17.06, -32.56)
CIE-LCHlch(71.34, 36.76, 297.65°)
OKLaboklab(75.95% 0.0317 -0.09)
OKLCHoklch(75.95% 0.095 289.4)
XYZxyz(46.3455, 42.6911, 83.6244)
Luminance0.4269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7EA #E2EAA7
analogous
#A7C0EA #AFA7EA #D0A7EA
triadic
#AFA7EA #EAAFA7 #A7EAAF
tetradic
#AFA7EA #EAA7C0 #E2EAA7 #A7EAD0
square
#AFA7EA #EAA7C0 #E2EAA7 #A7EAD0
split-complementary
#AFA7EA #EAD0A7 #C0EAA7
monochromatic
#5544D2 #8276DE #AFA7EA #DCD8F6 #E9E6F9

Accessibility & contrast

On white

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

On black

9.54
#AFA7EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7EA
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7EA#FFFFFF#000000##000000
##AFA7EA1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96B0ED
Deuteranopia (green-blind)
#95ADE8
Tritanopia (blue-blind)
#A2B2BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7ea;
/* rgb */ color: rgb(175, 167, 234);
/* oklch */ color: oklch(75.9% 0.095 289.4);
Tailwind
colors: {
  custom: {
    50: '#c8c1f1',
    500: '#afa7ea',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ea;
$custom-light: #c8c1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ea",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 234
  },
  "hsl": {
    "h": 247.164,
    "s": 61.468,
    "l": 78.627
  },
  "oklch": {
    "l": 0.75948,
    "c": 0.09541,
    "h": 289.4
  },
  "luminance": 0.42692
}

Semantic roles & 50–950 ramp

primary
#AFA7EA
secondary
#EEF0DB
accent
#C91CB5
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7EA

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

Preview Lab → · Contrast checker → · Palette generator →

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