#AFA1DF#AFA1DF

#AFA1DF is a light, moderate violet. Relative luminance 0.399; OKLCH L 74.3% C 0.089 H 294.5°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFA1DF
RGBrgb(175, 161, 223)
HSLhsl(254, 49%, 75%)
HSVhsv(254, 28%, 87%)
CMYKcmyk(21.5%, 27.8%, 0%, 12.5%)
CIE-LABlab(69.42, 17.84, -29.51)
CIE-LCHlch(69.42, 34.48, 301.15°)
OKLaboklab(74.32% 0.037 -0.0813)
OKLCHoklch(74.32% 0.089 294.5)
XYZxyz(43.7403, 39.9310, 75.2008)
Luminance0.3993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1DF #D1DFA1
analogous
#A1B2DF #AFA1DF #CEA1DF
triadic
#AFA1DF #DFAFA1 #A1DFAF
tetradic
#AFA1DF #DFA1B2 #D1DFA1 #A1DFCE
square
#AFA1DF #DFA1B2 #D1DFA1 #A1DFCE
split-complementary
#AFA1DF #DFCEA1 #B2DFA1
monochromatic
#6146C0 #8873CF #AFA1DF #D6CFEF #ECE8F7

Accessibility & contrast

On white

2.34
#AFA1DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFA1DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1DF
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1DF#FFFFFF#000000##000000
##AFA1DF1.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#92AAE2
Deuteranopia (green-blind)
#94A9DD
Tritanopia (blue-blind)
#A6ABB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa1df;
/* rgb */ color: rgb(175, 161, 223);
/* oklch */ color: oklch(74.3% 0.089 294.5);
Tailwind
colors: {
  custom: {
    50: '#c7bce9',
    500: '#afa1df',
    950: '#000000',
  },
}
SCSS
$custom: #afa1df;
$custom-light: #c7bce9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1df",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 223
  },
  "hsl": {
    "h": 253.548,
    "s": 49.206,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74324,
    "c": 0.08931,
    "h": 294.5
  },
  "luminance": 0.39931
}

Semantic roles & 50–950 ramp

primary
#AFA1DF
secondary
#EAEEDD
accent
#BD299B
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA1DF

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

Preview Lab → · Contrast checker → · Palette generator →

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