#AFA7E2#AFA7E2

#AFA7E2 is a light, moderate blue. Relative luminance 0.422; OKLCH L 75.6% C 0.084 H 290.4°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA7E2
RGBrgb(175, 167, 226)
HSLhsl(248, 50%, 77%)
HSVhsv(248, 26%, 89%)
CMYKcmyk(22.6%, 26.1%, 0%, 11.4%)
CIE-LABlab(71.04, 15.18, -28.67)
CIE-LCHlch(71.04, 32.44, 297.90°)
OKLaboklab(75.61% 0.0294 -0.0789)
OKLCHoklch(75.61% 0.084 290.4)
XYZxyz(45.2221, 42.2418, 77.7077)
Luminance0.4224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7E2 #DAE2A7
analogous
#A7BDE2 #AFA7E2 #CDA7E2
triadic
#AFA7E2 #E2AFA7 #A7E2AF
tetradic
#AFA7E2 #E2A7BD #DAE2A7 #A7E2CD
square
#AFA7E2 #E2A7BD #DAE2A7 #A7E2CD
split-complementary
#AFA7E2 #E2CDA7 #BDE2A7
monochromatic
#5B4BC4 #8579D3 #AFA7E2 #D9D5F1 #EAE8F7

Accessibility & contrast

On white

2.22
#AFA7E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#AFA7E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7E2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7E2#FFFFFF#000000##000000
##AFA7E21.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98AFE5
Deuteranopia (green-blind)
#99ADE0
Tritanopia (blue-blind)
#A4B1BC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa7e2;
/* rgb */ color: rgb(175, 167, 226);
/* oklch */ color: oklch(75.6% 0.084 290.4);
Tailwind
colors: {
  custom: {
    50: '#c7c1eb',
    500: '#afa7e2',
    950: '#000000',
  },
}
SCSS
$custom: #afa7e2;
$custom-light: #c7c1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7e2",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 226
  },
  "hsl": {
    "h": 248.136,
    "s": 50.427,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75609,
    "c": 0.08422,
    "h": 290.4
  },
  "luminance": 0.42242
}

Semantic roles & 50–950 ramp

primary
#AFA7E2
secondary
#ECEFDC
accent
#BE28A9
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7E2

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

Preview Lab → · Contrast checker → · Palette generator →

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