#AF8CD9#AF8CD9

#AF8CD9 is a light, moderate violet. Relative luminance 0.329; OKLCH L 70.1% C 0.116 H 304.5°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AF8CD9
RGBrgb(175, 140, 217)
HSLhsl(267, 50%, 70%)
HSVhsv(267, 35%, 85%)
CMYKcmyk(19.4%, 35.5%, 0%, 14.9%)
CIE-LABlab(64.06, 28.27, -34.49)
CIE-LCHlch(64.06, 44.59, 309.35°)
OKLaboklab(70.14% 0.0655 -0.0954)
OKLCHoklch(70.14% 0.116 304.5)
XYZxyz(39.5791, 32.8800, 69.8936)
Luminance0.3288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CD9 #B6D98C
analogous
#8C8FD9 #AF8CD9 #D68CD9
triadic
#AF8CD9 #D9AF8C #8CD9AF
tetradic
#AF8CD9 #D98C8F #B6D98C #8CD9D6
square
#AF8CD9 #D98C8F #B6D98C #8CD9D6
split-complementary
#AF8CD9 #D9D68C #8FD98C
monochromatic
#703AB0 #8F5ECA #AF8CD9 #CFBAE8 #EFE8F7

Accessibility & contrast

On white

2.77
#AF8CD9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#AF8CD9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CD9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CD9#FFFFFF#000000##000000
##AF8CD91.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9ADC
Deuteranopia (green-blind)
#829BD7
Tritanopia (blue-blind)
#A898A9
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af8cd9;
/* rgb */ color: rgb(175, 140, 217);
/* oklch */ color: oklch(70.1% 0.116 304.5);
Tailwind
colors: {
  custom: {
    50: '#c8aee5',
    500: '#af8cd9',
    950: '#000000',
  },
}
SCSS
$custom: #af8cd9;
$custom-light: #c8aee5;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cd9",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 217
  },
  "hsl": {
    "h": 267.273,
    "s": 50.327,
    "l": 70
  },
  "oklch": {
    "l": 0.70142,
    "c": 0.1157,
    "h": 304.5
  },
  "luminance": 0.3288
}

Semantic roles & 50–950 ramp

primary
#AF8CD9
secondary
#E1EBD6
accent
#BE287A
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131015
muted
#827F84

Preview Lab

Preview with #AF8CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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