#AF8DCD#AF8DCD

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

Color values

HEX#AF8DCD
RGBrgb(175, 141, 205)
HSLhsl(272, 39%, 68%)
HSVhsv(272, 31%, 80%)
CMYKcmyk(14.6%, 31.2%, 0%, 19.6%)
CIE-LABlab(63.81, 25.04, -28.18)
CIE-LCHlch(63.81, 37.70, 311.62°)
OKLaboklab(69.79% 0.0611 -0.0774)
OKLCHoklch(69.79% 0.099 308.3)
XYZxyz(38.2215, 32.5718, 62.0192)
Luminance0.3257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DCD #ABCD8D
analogous
#8F8DCD #AF8DCD #CD8DCB
triadic
#AF8DCD #CDAF8D #8DCDAF
tetradic
#AF8DCD #CD8F8D #ABCD8D #8DCBCD
square
#AF8DCD #CD8F8D #ABCD8D #8DCBCD
split-complementary
#AF8DCD #CBCD8D #8DCD8F
monochromatic
#73449B #9162BA #AF8DCD #CDB8E0 #EBE2F2

Accessibility & contrast

On white

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

On black

7.51
#AF8DCD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DCD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DCD#FFFFFF#000000##000000
##AF8DCD1.002.797.517.51
#FFFFFF2.791.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8199D0
Deuteranopia (green-blind)
#889BCB
Tritanopia (blue-blind)
#AB96A4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af8dcd;
/* rgb */ color: rgb(175, 141, 205);
/* oklch */ color: oklch(69.8% 0.099 308.3);
Tailwind
colors: {
  custom: {
    50: '#c7aedc',
    500: '#af8dcd',
    950: '#000000',
  },
}
SCSS
$custom: #af8dcd;
$custom-light: #c7aedc;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dcd",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 205
  },
  "hsl": {
    "h": 271.875,
    "s": 39.024,
    "l": 67.843
  },
  "oklch": {
    "l": 0.69789,
    "c": 0.09857,
    "h": 308.3
  },
  "luminance": 0.32571
}

Semantic roles & 50–950 ramp

primary
#AF8DCD
secondary
#DAE5D1
accent
#B2336F
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF8DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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