#AFA5DA#AFA5DA

#AFA5DA is a light, moderate violet. Relative luminance 0.411; OKLCH L 74.9% C 0.076 H 293.1°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#AFA5DA
RGBrgb(175, 165, 218)
HSLhsl(251, 42%, 75%)
HSVhsv(251, 24%, 85%)
CMYKcmyk(19.7%, 24.3%, 0%, 14.5%)
CIE-LABlab(70.24, 14.46, -25.51)
CIE-LCHlch(70.24, 29.32, 299.54°)
OKLaboklab(74.89% 0.0299 -0.07)
OKLCHoklch(74.89% 0.076 293.1)
XYZxyz(43.7864, 41.0858, 71.9396)
Luminance0.4109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5DA #D0DAA5
analogous
#A5B5DA #AFA5DA #CAA5DA
triadic
#AFA5DA #DAAFA5 #A5DAAF
tetradic
#AFA5DA #DAA5B5 #D0DAA5 #A5DACA
square
#AFA5DA #DAA5B5 #D0DAA5 #A5DACA
split-complementary
#AFA5DA #DACAA5 #B5DAA5
monochromatic
#624EB6 #887AC8 #AFA5DA #D6D0EC #ECE9F6

Accessibility & contrast

On white

2.28
#AFA5DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#AFA5DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5DA
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5DA#FFFFFF#000000##000000
##AFA5DA1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99ACDC
Deuteranopia (green-blind)
#9AABD9
Tritanopia (blue-blind)
#A7ADB7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa5da;
/* rgb */ color: rgb(175, 165, 218);
/* oklch */ color: oklch(74.9% 0.076 293.1);
Tailwind
colors: {
  custom: {
    50: '#c7bfe5',
    500: '#afa5da',
    950: '#000000',
  },
}
SCSS
$custom: #afa5da;
$custom-light: #c7bfe5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5da",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 218
  },
  "hsl": {
    "h": 251.321,
    "s": 41.732,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74891,
    "c": 0.07608,
    "h": 293.1
  },
  "luminance": 0.41086
}

Semantic roles & 50–950 ramp

primary
#AFA5DA
secondary
#EAEDDE
accent
#B5319C
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131215
muted
#828184

Preview Lab

Preview with #AFA5DA

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

Preview Lab → · Contrast checker → · Palette generator →

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