#AFA5DE#AFA5DE

#AFA5DE is a light, moderate violet. Relative luminance 0.413; OKLCH L 75.1% C 0.082 H 292.4°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA5DE
RGBrgb(175, 165, 222)
HSLhsl(251, 46%, 76%)
HSVhsv(251, 26%, 87%)
CMYKcmyk(21.2%, 25.7%, 0%, 12.9%)
CIE-LABlab(70.38, 15.37, -27.48)
CIE-LCHlch(70.38, 31.49, 299.22°)
OKLaboklab(75.06% 0.0311 -0.0755)
OKLCHoklch(75.06% 0.082 292.4)
XYZxyz(44.3161, 41.2977, 74.7296)
Luminance0.4130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5DE #D4DEA5
analogous
#A5B7DE #AFA5DE #CBA5DE
triadic
#AFA5DE #DEAFA5 #A5DEAF
tetradic
#AFA5DE #DEA5B7 #D4DEA5 #A5DECB
square
#AFA5DE #DEA5B7 #D4DEA5 #A5DECB
split-complementary
#AFA5DE #DECBA5 #B7DEA5
monochromatic
#5F4BBD #8778CE #AFA5DE #D7D2EE #EBE9F7

Accessibility & contrast

On white

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

On black

9.26
#AFA5DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5DE
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5DE#FFFFFF#000000##000000
##AFA5DE1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97ADE0
Deuteranopia (green-blind)
#98ABDC
Tritanopia (blue-blind)
#A5AEB9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa5de;
/* rgb */ color: rgb(175, 165, 222);
/* oklch */ color: oklch(75.1% 0.082 292.4);
Tailwind
colors: {
  custom: {
    50: '#c7bfe8',
    500: '#afa5de',
    950: '#000000',
  },
}
SCSS
$custom: #afa5de;
$custom-light: #c7bfe8;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5de",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 222
  },
  "hsl": {
    "h": 250.526,
    "s": 46.341,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75055,
    "c": 0.08167,
    "h": 292.4
  },
  "luminance": 0.41298
}

Semantic roles & 50–950 ramp

primary
#AFA5DE
secondary
#EBEEDD
accent
#BA2CA1
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5DE

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

Preview Lab → · Contrast checker → · Palette generator →

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