#AFA5DD#AFA5DD

#AFA5DD is a light, moderate violet. Relative luminance 0.412; OKLCH L 75.0% C 0.080 H 292.5°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA5DD
RGBrgb(175, 165, 221)
HSLhsl(251, 45%, 76%)
HSVhsv(251, 25%, 87%)
CMYKcmyk(20.8%, 25.3%, 0%, 13.3%)
CIE-LABlab(70.35, 15.14, -26.99)
CIE-LCHlch(70.35, 30.94, 299.29°)
OKLaboklab(75.01% 0.0308 -0.0741)
OKLCHoklch(75.01% 0.08 292.5)
XYZxyz(44.1825, 41.2442, 74.0258)
Luminance0.4124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5DD #D3DDA5
analogous
#A5B7DD #AFA5DD #CBA5DD
triadic
#AFA5DD #DDAFA5 #A5DDAF
tetradic
#AFA5DD #DDA5B7 #D3DDA5 #A5DDCB
square
#AFA5DD #DDA5B7 #D3DDA5 #A5DDCB
split-complementary
#AFA5DD #DDCBA5 #B7DDA5
monochromatic
#604CBB #8879CC #AFA5DD #D6D1EE #EBE9F7

Accessibility & contrast

On white

2.27
#AFA5DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFA5DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5DD
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5DD#FFFFFF#000000##000000
##AFA5DD1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98ADDF
Deuteranopia (green-blind)
#99ABDB
Tritanopia (blue-blind)
#A6AEB8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa5dd;
/* rgb */ color: rgb(175, 165, 221);
/* oklch */ color: oklch(75.0% 0.080 292.5);
Tailwind
colors: {
  custom: {
    50: '#c7bfe7',
    500: '#afa5dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa5dd;
$custom-light: #c7bfe7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5dd",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 221
  },
  "hsl": {
    "h": 250.714,
    "s": 45.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75014,
    "c": 0.08027,
    "h": 292.5
  },
  "luminance": 0.41245
}

Semantic roles & 50–950 ramp

primary
#AFA5DD
secondary
#EBEEDD
accent
#B82D9F
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5DD

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

Preview Lab → · Contrast checker → · Palette generator →

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