#AF8DCF#AF8DCF

#AF8DCF is a light, moderate violet. Relative luminance 0.327; OKLCH L 69.9% C 0.101 H 307.5°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#AF8DCF
RGBrgb(175, 141, 207)
HSLhsl(271, 41%, 68%)
HSVhsv(271, 32%, 81%)
CMYKcmyk(15.5%, 31.9%, 0%, 18.8%)
CIE-LABlab(63.89, 25.47, -29.18)
CIE-LCHlch(63.89, 38.73, 311.13°)
OKLaboklab(69.88% 0.0616 -0.0802)
OKLCHoklch(69.88% 0.101 307.5)
XYZxyz(38.4644, 32.6690, 63.2988)
Luminance0.3267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DCF #ADCF8D
analogous
#8E8DCF #AF8DCF #CF8DCE
triadic
#AF8DCF #CFAF8D #8DCFAF
tetradic
#AF8DCF #CF8E8D #ADCF8D #8DCECF
square
#AF8DCF #CF8E8D #ADCF8D #8DCECF
split-complementary
#AF8DCF #CECF8D #8DCF8E
monochromatic
#72439F #9162BD #AF8DCF #CDB8E1 #EBE3F3

Accessibility & contrast

On white

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

On black

7.53
#AF8DCF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DCF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DCF#FFFFFF#000000##000000
##AF8DCF1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af8dcf;
/* rgb */ color: rgb(175, 141, 207);
/* oklch */ color: oklch(69.9% 0.101 307.5);
Tailwind
colors: {
  custom: {
    50: '#c7aede',
    500: '#af8dcf',
    950: '#000000',
  },
}
SCSS
$custom: #af8dcf;
$custom-light: #c7aede;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dcf",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 207
  },
  "hsl": {
    "h": 270.909,
    "s": 40.741,
    "l": 68.235
  },
  "oklch": {
    "l": 0.69876,
    "c": 0.10113,
    "h": 307.5
  },
  "luminance": 0.32669
}

Semantic roles & 50–950 ramp

primary
#AF8DCF
secondary
#DCE6D2
accent
#B43271
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF8DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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