#AF8AED#AF8AED

#AF8AED is a light, vivid violet. Relative luminance 0.334; OKLCH L 70.8% C 0.145 H 299.9°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF8AED
RGBrgb(175, 138, 237)
HSLhsl(262, 73%, 74%)
HSVhsv(262, 42%, 93%)
CMYKcmyk(26.2%, 41.8%, 0%, 7.1%)
CIE-LABlab(64.49, 34.06, -44.90)
CIE-LCHlch(64.49, 56.36, 307.18°)
OKLaboklab(70.76% 0.0723 -0.1254)
OKLCHoklch(70.76% 0.145 299.9)
XYZxyz(42.0503, 33.4051, 84.3368)
Luminance0.3341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AED #C8ED8A
analogous
#8A96ED #AF8AED #E08AED
triadic
#AF8AED #EDAF8A #8AEDAF
tetradic
#AF8AED #ED8A96 #C8ED8A #8AEDE0
square
#AF8AED #ED8A96 #C8ED8A #8AEDE0
split-complementary
#AF8AED #EDE08A #96ED8A
monochromatic
#6722DB #8B55E5 #AF8AED #D3BFF5 #EDE4FB

Accessibility & contrast

On white

2.73
#AF8AED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#AF8AED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AED
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AED#FFFFFF#000000##000000
##AF8AED1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9CF1
Deuteranopia (green-blind)
#779CEA
Tritanopia (blue-blind)
#A39BB0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8aed;
/* rgb */ color: rgb(175, 138, 237);
/* oklch */ color: oklch(70.8% 0.145 299.9);
Tailwind
colors: {
  custom: {
    50: '#c9acf3',
    500: '#af8aed',
    950: '#000000',
  },
}
SCSS
$custom: #af8aed;
$custom-light: #c9acf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af8aed",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 237
  },
  "hsl": {
    "h": 262.424,
    "s": 73.333,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70755,
    "c": 0.14478,
    "h": 299.9
  },
  "luminance": 0.33405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8AED

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

Preview Lab → · Contrast checker → · Palette generator →

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