#AFA7ED#AFA7ED

#AFA7ED is a light, moderate blue. Relative luminance 0.429; OKLCH L 76.1% C 0.100 H 289.0°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA7ED
RGBrgb(175, 167, 237)
HSLhsl(247, 66%, 79%)
HSVhsv(247, 30%, 93%)
CMYKcmyk(26.2%, 29.5%, 0%, 7.1%)
CIE-LABlab(71.46, 17.77, -34.01)
CIE-LCHlch(71.46, 38.38, 297.59°)
OKLaboklab(76.08% 0.0325 -0.0941)
OKLCHoklch(76.08% 0.1 289)
XYZxyz(46.7802, 42.8650, 85.9135)
Luminance0.4287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7ED #E5EDA7
analogous
#A7C2ED #AFA7ED #D2A7ED
triadic
#AFA7ED #EDAFA7 #A7EDAF
tetradic
#AFA7ED #EDA7C2 #E5EDA7 #A7EDD2
square
#AFA7ED #EDA7C2 #E5EDA7 #A7EDD2
split-complementary
#AFA7ED #EDD2A7 #C2EDA7
monochromatic
#5341D8 #8174E3 #AFA7ED #DDDAF7 #E8E6FA

Accessibility & contrast

On white

2.19
#AFA7ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#AFA7ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7ED
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7ED#FFFFFF#000000##000000
##AFA7ED1.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B1F0
Deuteranopia (green-blind)
#94ADEB
Tritanopia (blue-blind)
#A1B3C0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7ed;
/* rgb */ color: rgb(175, 167, 237);
/* oklch */ color: oklch(76.1% 0.100 289.0);
Tailwind
colors: {
  custom: {
    50: '#c8c1f3',
    500: '#afa7ed',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ed;
$custom-light: #c8c1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ed",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 237
  },
  "hsl": {
    "h": 246.857,
    "s": 66.038,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76078,
    "c": 0.0996,
    "h": 289
  },
  "luminance": 0.42866
}

Semantic roles & 50–950 ramp

primary
#AFA7ED
secondary
#EFF1DA
accent
#CE18B9
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7ED

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

Preview Lab → · Contrast checker → · Palette generator →

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