#AF8AEB#AF8AEB

#AF8AEB is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.7% C 0.142 H 300.4°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#AF8AEB
RGBrgb(175, 138, 235)
HSLhsl(263, 71%, 73%)
HSVhsv(263, 41%, 92%)
CMYKcmyk(25.5%, 41.3%, 0%, 7.8%)
CIE-LABlab(64.39, 33.58, -43.95)
CIE-LCHlch(64.39, 55.31, 307.39°)
OKLaboklab(70.65% 0.0719 -0.1227)
OKLCHoklch(70.65% 0.142 300.4)
XYZxyz(41.7597, 33.2889, 82.8065)
Luminance0.3329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AEB #C6EB8A
analogous
#8A95EB #AF8AEB #E08AEB
triadic
#AF8AEB #EBAF8A #8AEBAF
tetradic
#AF8AEB #EB8A95 #C6EB8A #8AEBE0
square
#AF8AEB #EB8A95 #C6EB8A #8AEBE0
split-complementary
#AF8AEB #EBE08A #95EB8A
monochromatic
#6825D6 #8B56E2 #AF8AEB #D3BEF4 #EDE5FB

Accessibility & contrast

On white

2.74
#AF8AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#AF8AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AEB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AEB#FFFFFF#000000##000000
##AF8AEB1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#709CEF
Deuteranopia (green-blind)
#789CE8
Tritanopia (blue-blind)
#A49BAF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8aeb;
/* rgb */ color: rgb(175, 138, 235);
/* oklch */ color: oklch(70.7% 0.142 300.4);
Tailwind
colors: {
  custom: {
    50: '#c9acf2',
    500: '#af8aeb',
    950: '#000000',
  },
}
SCSS
$custom: #af8aeb;
$custom-light: #c9acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af8aeb",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 262.887,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70654,
    "c": 0.14222,
    "h": 300.4
  },
  "luminance": 0.33289
}

Semantic roles & 50–950 ramp

primary
#AF8AEB
secondary
#E8F2D9
accent
#D3138A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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