#AFA7DF#AFA7DF

#AFA7DF is a light, moderate blue. Relative luminance 0.421; OKLCH L 75.5% C 0.080 H 290.9°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA7DF
RGBrgb(175, 167, 223)
HSLhsl(249, 47%, 76%)
HSVhsv(249, 25%, 87%)
CMYKcmyk(21.5%, 25.1%, 0%, 12.5%)
CIE-LABlab(70.92, 14.48, -27.20)
CIE-LCHlch(70.92, 30.81, 298.04°)
OKLaboklab(75.49% 0.0285 -0.0747)
OKLCHoklch(75.49% 0.08 290.9)
XYZxyz(44.8141, 42.0785, 75.5587)
Luminance0.4208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7DF #D7DFA7
analogous
#A7BBDF #AFA7DF #CBA7DF
triadic
#AFA7DF #DFAFA7 #A7DFAF
tetradic
#AFA7DF #DFA7BB #D7DFA7 #A7DFCB
square
#AFA7DF #DFA7BB #D7DFA7 #A7DFCB
split-complementary
#AFA7DF #DFCBA7 #BBDFA7
monochromatic
#5D4DBE #867ACF #AFA7DF #D8D4EF #EBE9F7

Accessibility & contrast

On white

2.23
#AFA7DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#AFA7DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7DF
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7DF#FFFFFF#000000##000000
##AFA7DF1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AAFE1
Deuteranopia (green-blind)
#9AACDD
Tritanopia (blue-blind)
#A5B0BA
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa7df;
/* rgb */ color: rgb(175, 167, 223);
/* oklch */ color: oklch(75.5% 0.080 290.9);
Tailwind
colors: {
  custom: {
    50: '#c7c1e9',
    500: '#afa7df',
    950: '#000000',
  },
}
SCSS
$custom: #afa7df;
$custom-light: #c7c1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7df",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 223
  },
  "hsl": {
    "h": 248.571,
    "s": 46.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75485,
    "c": 0.08,
    "h": 290.9
  },
  "luminance": 0.42079
}

Semantic roles & 50–950 ramp

primary
#AFA7DF
secondary
#EBEEDD
accent
#BA2CA6
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7DF

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

Preview Lab → · Contrast checker → · Palette generator →

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