#AF8BE7#AF8BE7

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

Color values

HEX#AF8BE7
RGBrgb(175, 139, 231)
HSLhsl(263, 66%, 73%)
HSVhsv(263, 40%, 91%)
CMYKcmyk(24.2%, 39.8%, 0%, 9.4%)
CIE-LABlab(64.44, 32.08, -41.66)
CIE-LCHlch(64.44, 52.58, 307.59°)
OKLaboklab(70.63% 0.0698 -0.1161)
OKLCHoklch(70.63% 0.135 301)
XYZxyz(41.3324, 33.3486, 79.8452)
Luminance0.3335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BE7 #C3E78B
analogous
#8B95E7 #AF8BE7 #DD8BE7
triadic
#AF8BE7 #E7AF8B #8BE7AF
tetradic
#AF8BE7 #E78B95 #C3E78B #8BE7DD
square
#AF8BE7 #E78B95 #C3E78B #8BE7DD
split-complementary
#AF8BE7 #E7DD8B #95E78B
monochromatic
#6A2ACD #8C58DD #AF8BE7 #D2BEF1 #EEE6FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8BE7#FFFFFF#000000##000000
##AF8BE71.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)
#749CEA
Deuteranopia (green-blind)
#7B9CE5
Tritanopia (blue-blind)
#A59AAE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8be7;
/* rgb */ color: rgb(175, 139, 231);
/* oklch */ color: oklch(70.6% 0.135 301.0);
Tailwind
colors: {
  custom: {
    50: '#c8adef',
    500: '#af8be7',
    950: '#000000',
  },
}
SCSS
$custom: #af8be7;
$custom-light: #c8adef;
$custom-dark: #000000;
JSON
{
  "hex": "#af8be7",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 231
  },
  "hsl": {
    "h": 263.478,
    "s": 65.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.7063,
    "c": 0.13545,
    "h": 301
  },
  "luminance": 0.33349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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