#AF8AEC#AF8AEC

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

Color values

HEX#AF8AEC
RGBrgb(175, 138, 236)
HSLhsl(263, 72%, 73%)
HSVhsv(263, 42%, 93%)
CMYKcmyk(25.8%, 41.5%, 0%, 7.5%)
CIE-LABlab(64.44, 33.82, -44.42)
CIE-LCHlch(64.44, 55.83, 307.28°)
OKLaboklab(70.71% 0.0721 -0.1241)
OKLCHoklch(70.71% 0.143 300.2)
XYZxyz(41.9046, 33.3469, 83.5695)
Luminance0.3335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AEC #C7EC8A
analogous
#8A96EC #AF8AEC #E08AEC
triadic
#AF8AEC #ECAF8A #8AECAF
tetradic
#AF8AEC #EC8A96 #C7EC8A #8AECE0
square
#AF8AEC #EC8A96 #C7EC8A #8AECE0
split-complementary
#AF8AEC #ECE08A #96EC8A
monochromatic
#6823D8 #8B55E3 #AF8AEC #D3BFF5 #EDE5FB

Accessibility & contrast

On white

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

On black

7.67
#AF8AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AEC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AEC#FFFFFF#000000##000000
##AF8AEC1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#709CF0
Deuteranopia (green-blind)
#779CE9
Tritanopia (blue-blind)
#A49BB0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8aec;
/* rgb */ color: rgb(175, 138, 236);
/* oklch */ color: oklch(70.7% 0.143 300.2);
Tailwind
colors: {
  custom: {
    50: '#c9acf2',
    500: '#af8aec',
    950: '#000000',
  },
}
SCSS
$custom: #af8aec;
$custom-light: #c9acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af8aec",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 236
  },
  "hsl": {
    "h": 262.653,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70705,
    "c": 0.14349,
    "h": 300.2
  },
  "luminance": 0.33347
}

Semantic roles & 50–950 ramp

primary
#AF8AEC
secondary
#E9F2D9
accent
#D4118B
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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