#AC8AFB#AC8AFB

#AC8AFB is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.2% C 0.162 H 295.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#AC8AFB
RGBrgb(172, 138, 251)
HSLhsl(258, 93%, 76%)
HSVhsv(258, 45%, 98%)
CMYKcmyk(31.5%, 45%, 0%, 1.6%)
CIE-LABlab(64.89, 36.67, -51.98)
CIE-LCHlch(64.89, 63.61, 305.21°)
OKLaboklab(71.22% 0.0709 -0.1461)
OKLCHoklch(71.22% 0.162 295.9)
XYZxyz(43.5100, 33.9120, 95.5014)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC8AFB #D9FB8A
analogous
#8AA1FB #AC8AFB #E58AFB
triadic
#AC8AFB #FBAC8A #8AFBAC
tetradic
#AC8AFB #FB8AA1 #D9FB8A #8AFBE5
square
#AC8AFB #FB8AA1 #D9FB8A #8AFBE5
split-complementary
#AC8AFB #FBE58A #A1FB8A
monochromatic
#5814F7 #824FF9 #AC8AFB #D6C5FD #EAE1FE

Accessibility & contrast

On white

2.70
#AC8AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#AC8AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC8AFB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC8AFB#FFFFFF#000000##000000
##AC8AFB1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFF
Deuteranopia (green-blind)
#6C9CF8
Tritanopia (blue-blind)
#9B9FB7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ac8afb;
/* rgb */ color: rgb(172, 138, 251);
/* oklch */ color: oklch(71.2% 0.162 295.9);
Tailwind
colors: {
  custom: {
    50: '#c7acfd',
    500: '#ac8afb',
    950: '#000000',
  },
}
SCSS
$custom: #ac8afb;
$custom-light: #c7acfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac8afb",
  "rgb": {
    "r": 172,
    "g": 138,
    "b": 251
  },
  "hsl": {
    "h": 258.053,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71217,
    "c": 0.16238,
    "h": 295.9
  },
  "luminance": 0.33913
}

Semantic roles & 50–950 ramp

primary
#AC8AFB
secondary
#ECF6D5
accent
#E600A0
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AC8AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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