#AF8DCE#AF8DCE

#AF8DCE is a light, moderate violet. Relative luminance 0.326; OKLCH L 69.8% C 0.100 H 307.9°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF8DCE
RGBrgb(175, 141, 206)
HSLhsl(271, 40%, 68%)
HSVhsv(271, 32%, 81%)
CMYKcmyk(15%, 31.6%, 0%, 19.2%)
CIE-LABlab(63.85, 25.26, -28.68)
CIE-LCHlch(63.85, 38.21, 311.37°)
OKLaboklab(69.83% 0.0613 -0.0788)
OKLCHoklch(69.83% 0.1 307.9)
XYZxyz(38.3426, 32.6203, 62.6570)
Luminance0.3262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DCE #ACCE8D
analogous
#8E8DCE #AF8DCE #CE8DCC
triadic
#AF8DCE #CEAF8D #8DCEAF
tetradic
#AF8DCE #CE8E8D #ACCE8D #8DCCCE
square
#AF8DCE #CE8E8D #ACCE8D #8DCCCE
split-complementary
#AF8DCE #CCCE8D #8DCE8E
monochromatic
#72449D #9162BC #AF8DCE #CDB8E0 #EBE3F3

Accessibility & contrast

On white

2.79
#AF8DCE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF8DCE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DCE
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DCE#FFFFFF#000000##000000
##AF8DCE1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8199D1
Deuteranopia (green-blind)
#889BCC
Tritanopia (blue-blind)
#AB96A5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af8dce;
/* rgb */ color: rgb(175, 141, 206);
/* oklch */ color: oklch(69.8% 0.100 307.9);
Tailwind
colors: {
  custom: {
    50: '#c7aedd',
    500: '#af8dce',
    950: '#000000',
  },
}
SCSS
$custom: #af8dce;
$custom-light: #c7aedd;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dce",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 206
  },
  "hsl": {
    "h": 271.385,
    "s": 39.877,
    "l": 68.039
  },
  "oklch": {
    "l": 0.69832,
    "c": 0.09985,
    "h": 307.9
  },
  "luminance": 0.3262
}

Semantic roles & 50–950 ramp

primary
#AF8DCE
secondary
#DBE5D1
accent
#B33370
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF8DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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