#AF8AE3#AF8AE3

#AF8AE3 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.3% C 0.132 H 302.3°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#AF8AE3
RGBrgb(175, 138, 227)
HSLhsl(265, 61%, 72%)
HSVhsv(265, 39%, 89%)
CMYKcmyk(22.9%, 39.2%, 0%, 11%)
CIE-LABlab(64.03, 31.70, -40.09)
CIE-LCHlch(64.03, 51.11, 308.33°)
OKLaboklab(70.26% 0.0705 -0.1115)
OKLCHoklch(70.26% 0.132 302.3)
XYZxyz(40.6298, 32.8370, 76.8558)
Luminance0.3284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AE3 #BEE38A
analogous
#8A92E3 #AF8AE3 #DC8AE3
triadic
#AF8AE3 #E3AF8A #8AE3AF
tetradic
#AF8AE3 #E38A92 #BEE38A #8AE3DC
square
#AF8AE3 #E38A92 #BEE38A #8AE3DC
split-complementary
#AF8AE3 #E3DC8A #92E38A
monochromatic
#6D2FC4 #8D59D7 #AF8AE3 #D1BBEF #EEE6F9

Accessibility & contrast

On white

2.78
#AF8AE3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#AF8AE3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AE3
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AE3#FFFFFF#000000##000000
##AF8AE31.002.787.577.57
#FFFFFF2.781.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#749AE6
Deuteranopia (green-blind)
#7C9BE1
Tritanopia (blue-blind)
#A699AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af8ae3;
/* rgb */ color: rgb(175, 138, 227);
/* oklch */ color: oklch(70.3% 0.132 302.3);
Tailwind
colors: {
  custom: {
    50: '#c8acec',
    500: '#af8ae3',
    950: '#000000',
  },
}
SCSS
$custom: #af8ae3;
$custom-light: #c8acec;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ae3",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 227
  },
  "hsl": {
    "h": 264.944,
    "s": 61.379,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70258,
    "c": 0.13192,
    "h": 302.3
  },
  "luminance": 0.32837
}

Semantic roles & 50–950 ramp

primary
#AF8AE3
secondary
#E6F0D9
accent
#C91C81
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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