#AF8FD9#AF8FD9

#AF8FD9 is a light, moderate violet. Relative luminance 0.338; OKLCH L 70.7% C 0.111 H 303.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF8FD9
RGBrgb(175, 143, 217)
HSLhsl(266, 49%, 71%)
HSVhsv(266, 34%, 85%)
CMYKcmyk(19.4%, 34.1%, 0%, 14.9%)
CIE-LABlab(64.78, 26.58, -33.37)
CIE-LCHlch(64.78, 42.67, 308.54°)
OKLaboklab(70.69% 0.0612 -0.0922)
OKLCHoklch(70.69% 0.111 303.6)
XYZxyz(40.0235, 33.7687, 70.0417)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8FD9 #B9D98F
analogous
#8F94D9 #AF8FD9 #D48FD9
triadic
#AF8FD9 #D9AF8F #8FD9AF
tetradic
#AF8FD9 #D98F94 #B9D98F #8FD9D4
square
#AF8FD9 #D98F94 #B9D98F #8FD9D4
split-complementary
#AF8FD9 #D9D48F #94D98F
monochromatic
#6F3CB1 #8E61C9 #AF8FD9 #D0BDE9 #EFE8F7

Accessibility & contrast

On white

2.71
#AF8FD9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF8FD9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8FD9
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8FD9#FFFFFF#000000##000000
##AF8FD91.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F9CDC
Deuteranopia (green-blind)
#859DD7
Tritanopia (blue-blind)
#A89AAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8fd9;
/* rgb */ color: rgb(175, 143, 217);
/* oklch */ color: oklch(70.7% 0.111 303.6);
Tailwind
colors: {
  custom: {
    50: '#c8b0e5',
    500: '#af8fd9',
    950: '#000000',
  },
}
SCSS
$custom: #af8fd9;
$custom-light: #c8b0e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af8fd9",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 217
  },
  "hsl": {
    "h": 265.946,
    "s": 49.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.70686,
    "c": 0.11066,
    "h": 303.6
  },
  "luminance": 0.33769
}

Semantic roles & 50–950 ramp

primary
#AF8FD9
secondary
#E3ECD8
accent
#BD297D
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131015
muted
#827F84

Preview Lab

Preview with #AF8FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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