#AFA7DB#AFA7DB

#AFA7DB is a light, moderate blue. Relative luminance 0.419; OKLCH L 75.3% C 0.074 H 291.6°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA7DB
RGBrgb(175, 167, 219)
HSLhsl(249, 42%, 76%)
HSVhsv(249, 24%, 86%)
CMYKcmyk(20.1%, 23.7%, 0%, 14.1%)
CIE-LABlab(70.78, 13.57, -25.23)
CIE-LCHlch(70.78, 28.65, 298.27°)
OKLaboklab(75.32% 0.0273 -0.0692)
OKLCHoklch(75.32% 0.074 291.6)
XYZxyz(44.2812, 41.8654, 72.7520)
Luminance0.4187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7DB #D3DBA7
analogous
#A7B9DB #AFA7DB #C9A7DB
triadic
#AFA7DB #DBAFA7 #A7DBAF
tetradic
#AFA7DB #DBA7B9 #D3DBA7 #A7DBC9
square
#AFA7DB #DBA7B9 #D3DBA7 #A7DBC9
split-complementary
#AFA7DB #DBC9A7 #B9DBA7
monochromatic
#6050B7 #887CC9 #AFA7DB #D6D2ED #EBE9F6

Accessibility & contrast

On white

2.24
#AFA7DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#AFA7DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7DB
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7DB#FFFFFF#000000##000000
##AFA7DB1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BAEDD
Deuteranopia (green-blind)
#9BACDA
Tritanopia (blue-blind)
#A6AFB9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa7db;
/* rgb */ color: rgb(175, 167, 219);
/* oklch */ color: oklch(75.3% 0.074 291.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1e6',
    500: '#afa7db',
    950: '#000000',
  },
}
SCSS
$custom: #afa7db;
$custom-light: #c7c1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7db",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 219
  },
  "hsl": {
    "h": 249.231,
    "s": 41.935,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75323,
    "c": 0.07438,
    "h": 291.6
  },
  "luminance": 0.41866
}

Semantic roles & 50–950 ramp

primary
#AFA7DB
secondary
#EBEDDE
accent
#B530A1
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7DB

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

Preview Lab → · Contrast checker → · Palette generator →

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