#AF8CED#AF8CED

#AF8CED is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.1% C 0.142 H 299.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#AF8CED
RGBrgb(175, 140, 237)
HSLhsl(262, 73%, 74%)
HSVhsv(262, 41%, 93%)
CMYKcmyk(26.2%, 40.9%, 0%, 7.1%)
CIE-LABlab(64.95, 32.94, -44.18)
CIE-LCHlch(64.95, 55.10, 306.71°)
OKLaboklab(71.1% 0.0696 -0.1233)
OKLCHoklch(71.1% 0.142 299.4)
XYZxyz(42.3398, 33.9843, 84.4334)
Luminance0.3398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CED #CAED8C
analogous
#8C9AED #AF8CED #DF8CED
triadic
#AF8CED #EDAF8C #8CEDAF
tetradic
#AF8CED #ED8C9A #CAED8C #8CEDDF
square
#AF8CED #ED8C9A #CAED8C #8CEDDF
split-complementary
#AF8CED #EDDF8C #9AED8C
monochromatic
#6522DC #8A57E5 #AF8CED #D4C1F5 #EDE5FB

Accessibility & contrast

On white

2.69
#AF8CED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#AF8CED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CED
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CED#FFFFFF#000000##000000
##AF8CED1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#729DF1
Deuteranopia (green-blind)
#799DEA
Tritanopia (blue-blind)
#A39DB1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8ced;
/* rgb */ color: rgb(175, 140, 237);
/* oklch */ color: oklch(71.1% 0.142 299.4);
Tailwind
colors: {
  custom: {
    50: '#c9aef3',
    500: '#af8ced',
    950: '#000000',
  },
}
SCSS
$custom: #af8ced;
$custom-light: #c9aef3;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ced",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 237
  },
  "hsl": {
    "h": 261.649,
    "s": 72.932,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71105,
    "c": 0.14161,
    "h": 299.4
  },
  "luminance": 0.33985
}

Semantic roles & 50–950 ramp

primary
#AF8CED
secondary
#E9F3D8
accent
#D5108E
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8CED

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

Preview Lab → · Contrast checker → · Palette generator →

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