#AFA8DB#AFA8DB

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

Color values

HEX#AFA8DB
RGBrgb(175, 168, 219)
HSLhsl(248, 41%, 76%)
HSVhsv(248, 23%, 86%)
CMYKcmyk(20.1%, 23.3%, 0%, 14.1%)
CIE-LABlab(71.03, 13.01, -24.84)
CIE-LCHlch(71.03, 28.04, 297.65°)
OKLaboklab(75.52% 0.0259 -0.0681)
OKLCHoklch(75.52% 0.073 290.8)
XYZxyz(44.4651, 42.2332, 72.8133)
Luminance0.4223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8DB #D4DBA8
analogous
#A8BADB #AFA8DB #C8A8DB
triadic
#AFA8DB #DBAFA8 #A8DBAF
tetradic
#AFA8DB #DBA8BA #D4DBA8 #A8DBC8
square
#AFA8DB #DBA8BA #D4DBA8 #A8DBC8
split-complementary
#AFA8DB #DBC8A8 #BADBA8
monochromatic
#5F51B7 #877DC9 #AFA8DB #D7D3ED #EBE9F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA8DB#FFFFFF#000000##000000
##AFA8DB1.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)
#9CAFDD
Deuteranopia (green-blind)
#9CADDA
Tritanopia (blue-blind)
#A6B0B9
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa8db;
/* rgb */ color: rgb(175, 168, 219);
/* oklch */ color: oklch(75.5% 0.073 290.8);
Tailwind
colors: {
  custom: {
    50: '#c7c1e6',
    500: '#afa8db',
    950: '#000000',
  },
}
SCSS
$custom: #afa8db;
$custom-light: #c7c1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8db",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 219
  },
  "hsl": {
    "h": 248.235,
    "s": 41.463,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75519,
    "c": 0.07285,
    "h": 290.8
  },
  "luminance": 0.42234
}

Semantic roles & 50–950 ramp

primary
#AFA8DB
secondary
#EBEDDE
accent
#B531A2
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA8DB

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

Preview Lab → · Contrast checker → · Palette generator →

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