#AF8CEE#AF8CEE

#AF8CEE is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.2% C 0.143 H 299.2°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF8CEE
RGBrgb(175, 140, 238)
HSLhsl(261, 74%, 74%)
HSVhsv(261, 41%, 93%)
CMYKcmyk(26.5%, 41.2%, 0%, 6.7%)
CIE-LABlab(65.00, 33.18, -44.65)
CIE-LCHlch(65.00, 55.63, 306.61°)
OKLaboklab(71.16% 0.0697 -0.1247)
OKLCHoklch(71.16% 0.143 299.2)
XYZxyz(42.4863, 34.0429, 85.2049)
Luminance0.3404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CEE #CBEE8C
analogous
#8C9AEE #AF8CEE #E08CEE
triadic
#AF8CEE #EEAF8C #8CEEAF
tetradic
#AF8CEE #EE8C9A #CBEE8C #8CEEE0
square
#AF8CEE #EE8C9A #CBEE8C #8CEEE0
split-complementary
#AF8CEE #EEE08C #9AEE8C
monochromatic
#6521DE #8A57E6 #AF8CEE #D4C1F6 #ECE4FB

Accessibility & contrast

On white

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

On black

7.81
#AF8CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CEE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CEE#FFFFFF#000000##000000
##AF8CEE1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#719EF2
Deuteranopia (green-blind)
#789DEB
Tritanopia (blue-blind)
#A39DB2
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8cee;
/* rgb */ color: rgb(175, 140, 238);
/* oklch */ color: oklch(71.2% 0.143 299.2);
Tailwind
colors: {
  custom: {
    50: '#c9aef4',
    500: '#af8cee',
    950: '#000000',
  },
}
SCSS
$custom: #af8cee;
$custom-light: #c9aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cee",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 261.429,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71155,
    "c": 0.1429,
    "h": 299.2
  },
  "luminance": 0.34043
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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