#AF8CE7#AF8CE7

#AF8CE7 is a light, vivid violet. Relative luminance 0.336; OKLCH L 70.8% C 0.134 H 300.8°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#AF8CE7
RGBrgb(175, 140, 231)
HSLhsl(263, 65%, 73%)
HSVhsv(263, 39%, 91%)
CMYKcmyk(24.2%, 39.4%, 0%, 9.4%)
CIE-LABlab(64.68, 31.51, -41.30)
CIE-LCHlch(64.68, 51.95, 307.35°)
OKLaboklab(70.81% 0.0684 -0.115)
OKLCHoklch(70.81% 0.134 300.8)
XYZxyz(41.4779, 33.6395, 79.8937)
Luminance0.3364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CE7 #C4E78C
analogous
#8C96E7 #AF8CE7 #DD8CE7
triadic
#AF8CE7 #E7AF8C #8CE7AF
tetradic
#AF8CE7 #E78C96 #C4E78C #8CE7DD
square
#AF8CE7 #E78C96 #C4E78C #8CE7DD
split-complementary
#AF8CE7 #E7DD8C #96E78C
monochromatic
#6A2BCE #8C59DC #AF8CE7 #D2BFF2 #EDE6FA

Accessibility & contrast

On white

2.72
#AF8CE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#AF8CE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CE7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CE7#FFFFFF#000000##000000
##AF8CE71.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#759CEA
Deuteranopia (green-blind)
#7C9CE5
Tritanopia (blue-blind)
#A59BAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8ce7;
/* rgb */ color: rgb(175, 140, 231);
/* oklch */ color: oklch(70.8% 0.134 300.8);
Tailwind
colors: {
  custom: {
    50: '#c8aeef',
    500: '#af8ce7',
    950: '#000000',
  },
}
SCSS
$custom: #af8ce7;
$custom-light: #c8aeef;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ce7",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 231
  },
  "hsl": {
    "h": 263.077,
    "s": 65.468,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70807,
    "c": 0.13383,
    "h": 300.8
  },
  "luminance": 0.3364
}

Semantic roles & 50–950 ramp

primary
#AF8CE7
secondary
#E8F1DA
accent
#CD1888
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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