#AFA5DF#AFA5DF

#AFA5DF is a light, moderate violet. Relative luminance 0.414; OKLCH L 75.1% C 0.083 H 292.2°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA5DF
RGBrgb(175, 165, 223)
HSLhsl(250, 48%, 76%)
HSVhsv(250, 26%, 87%)
CMYKcmyk(21.5%, 26%, 0%, 12.5%)
CIE-LABlab(70.42, 15.60, -27.97)
CIE-LCHlch(70.42, 32.03, 299.15°)
OKLaboklab(75.1% 0.0314 -0.0769)
OKLCHoklch(75.1% 0.083 292.2)
XYZxyz(44.4505, 41.3514, 75.4375)
Luminance0.4135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5DF #D5DFA5
analogous
#A5B8DF #AFA5DF #CCA5DF
triadic
#AFA5DF #DFAFA5 #A5DFAF
tetradic
#AFA5DF #DFA5B8 #D5DFA5 #A5DFCC
square
#AFA5DF #DFA5B8 #D5DFA5 #A5DFCC
split-complementary
#AFA5DF #DFCCA5 #B8DFA5
monochromatic
#5F4BBF #8778CF #AFA5DF #D7D2EF #EBE8F7

Accessibility & contrast

On white

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

On black

9.27
#AFA5DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5DF
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5DF#FFFFFF#000000##000000
##AFA5DF1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa5df;
/* rgb */ color: rgb(175, 165, 223);
/* oklch */ color: oklch(75.1% 0.083 292.2);
Tailwind
colors: {
  custom: {
    50: '#c7bfe9',
    500: '#afa5df',
    950: '#000000',
  },
}
SCSS
$custom: #afa5df;
$custom-light: #c7bfe9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5df",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 223
  },
  "hsl": {
    "h": 250.345,
    "s": 47.541,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75096,
    "c": 0.08307,
    "h": 292.2
  },
  "luminance": 0.41352
}

Semantic roles & 50–950 ramp

primary
#AFA5DF
secondary
#EBEEDD
accent
#BB2BA2
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5DF

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

Preview Lab → · Contrast checker → · Palette generator →

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