#AFA7DE#AFA7DE

#AFA7DE is a light, moderate blue. Relative luminance 0.420; OKLCH L 75.4% C 0.079 H 291.1°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA7DE
RGBrgb(175, 167, 222)
HSLhsl(249, 45%, 76%)
HSVhsv(249, 25%, 87%)
CMYKcmyk(21.2%, 24.8%, 0%, 12.9%)
CIE-LABlab(70.89, 14.25, -26.71)
CIE-LCHlch(70.89, 30.27, 298.09°)
OKLaboklab(75.44% 0.0282 -0.0733)
OKLCHoklch(75.44% 0.079 291.1)
XYZxyz(44.6797, 42.0248, 74.8507)
Luminance0.4203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7DE #D6DEA7
analogous
#A7BBDE #AFA7DE #CBA7DE
triadic
#AFA7DE #DEAFA7 #A7DEAF
tetradic
#AFA7DE #DEA7BB #D6DEA7 #A7DECB
square
#AFA7DE #DEA7BB #D6DEA7 #A7DECB
split-complementary
#AFA7DE #DECBA7 #BBDEA7
monochromatic
#5E4EBD #877ACD #AFA7DE #D7D4EF #EBE9F7

Accessibility & contrast

On white

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

On black

9.40
#AFA7DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7DE
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7DE#FFFFFF#000000##000000
##AFA7DE1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AAEE0
Deuteranopia (green-blind)
#9AACDC
Tritanopia (blue-blind)
#A5B0BA
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa7de;
/* rgb */ color: rgb(175, 167, 222);
/* oklch */ color: oklch(75.4% 0.079 291.1);
Tailwind
colors: {
  custom: {
    50: '#c7c1e8',
    500: '#afa7de',
    950: '#000000',
  },
}
SCSS
$custom: #afa7de;
$custom-light: #c7c1e8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7de",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 222
  },
  "hsl": {
    "h": 248.727,
    "s": 45.455,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75444,
    "c": 0.0786,
    "h": 291.1
  },
  "luminance": 0.42025
}

Semantic roles & 50–950 ramp

primary
#AFA7DE
secondary
#EBEEDD
accent
#B92DA4
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7DE

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

Preview Lab → · Contrast checker → · Palette generator →

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