#AF8CD2#AF8CD2

#AF8CD2 is a light, moderate violet. Relative luminance 0.325; OKLCH L 69.8% C 0.107 H 306.7°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#AF8CD2
RGBrgb(175, 140, 210)
HSLhsl(270, 44%, 69%)
HSVhsv(270, 33%, 82%)
CMYKcmyk(16.7%, 33.3%, 0%, 17.6%)
CIE-LABlab(63.77, 26.70, -31.03)
CIE-LCHlch(63.77, 40.94, 310.71°)
OKLaboklab(69.83% 0.0638 -0.0855)
OKLCHoklch(69.83% 0.107 306.7)
XYZxyz(38.6879, 32.5235, 65.1998)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CD2 #AFD28C
analogous
#8C8CD2 #AF8CD2 #D28CD2
triadic
#AF8CD2 #D2AF8C #8CD2AF
tetradic
#AF8CD2 #D28C8C #AFD28C #8CD2D2
square
#AF8CD2 #D28C8C #AFD28C #8CD2D2
split-complementary
#AF8CD2 #D2D28C #8CD28C
monochromatic
#7240A4 #9060C1 #AF8CD2 #CEB8E3 #ECE4F4

Accessibility & contrast

On white

2.80
#AF8CD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#AF8CD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CD2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CD2#FFFFFF#000000##000000
##AF8CD21.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E99D5
Deuteranopia (green-blind)
#859BD0
Tritanopia (blue-blind)
#AA96A6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af8cd2;
/* rgb */ color: rgb(175, 140, 210);
/* oklch */ color: oklch(69.8% 0.107 306.7);
Tailwind
colors: {
  custom: {
    50: '#c8aee0',
    500: '#af8cd2',
    950: '#000000',
  },
}
SCSS
$custom: #af8cd2;
$custom-light: #c8aee0;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cd2",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 43.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.69825,
    "c": 0.1067,
    "h": 306.7
  },
  "luminance": 0.32523
}

Semantic roles & 50–950 ramp

primary
#AF8CD2
secondary
#DDE7D2
accent
#B72F73
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF8CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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