#AFA6DB#AFA6DB

#AFA6DB is a light, moderate violet. Relative luminance 0.415; OKLCH L 75.1% C 0.076 H 292.3°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA6DB
RGBrgb(175, 166, 219)
HSLhsl(250, 42%, 75%)
HSVhsv(250, 24%, 86%)
CMYKcmyk(20.1%, 24.2%, 0%, 14.1%)
CIE-LABlab(70.53, 14.13, -25.62)
CIE-LCHlch(70.53, 29.25, 298.87°)
OKLaboklab(75.13% 0.0288 -0.0703)
OKLCHoklch(75.13% 0.076 292.3)
XYZxyz(44.0987, 41.5004, 72.6912)
Luminance0.4150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6DB #D2DBA6
analogous
#A6B7DB #AFA6DB #C9A6DB
triadic
#AFA6DB #DBAFA6 #A6DBAF
tetradic
#AFA6DB #DBA6B7 #D2DBA6 #A6DBC9
square
#AFA6DB #DBA6B7 #D2DBA6 #A6DBC9
split-complementary
#AFA6DB #DBC9A6 #B7DBA6
monochromatic
#614FB8 #887AC9 #AFA6DB #D6D2ED #EBE9F6

Accessibility & contrast

On white

2.26
#AFA6DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFA6DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6DB
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6DB#FFFFFF#000000##000000
##AFA6DB1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AADDD
Deuteranopia (green-blind)
#9AACDA
Tritanopia (blue-blind)
#A6AEB8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa6db;
/* rgb */ color: rgb(175, 166, 219);
/* oklch */ color: oklch(75.1% 0.076 292.3);
Tailwind
colors: {
  custom: {
    50: '#c7c0e6',
    500: '#afa6db',
    950: '#000000',
  },
}
SCSS
$custom: #afa6db;
$custom-light: #c7c0e6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6db",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 219
  },
  "hsl": {
    "h": 250.189,
    "s": 42.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75127,
    "c": 0.07592,
    "h": 292.3
  },
  "luminance": 0.41501
}

Semantic roles & 50–950 ramp

primary
#AFA6DB
secondary
#EAEDDE
accent
#B5309F
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA6DB

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

Preview Lab → · Contrast checker → · Palette generator →

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