#AF86EB#AF86EB

#AF86EB is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.0% C 0.149 H 301.4°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#AF86EB
RGBrgb(175, 134, 235)
HSLhsl(264, 72%, 72%)
HSVhsv(264, 43%, 92%)
CMYKcmyk(25.5%, 43%, 0%, 7.8%)
CIE-LABlab(63.48, 35.82, -45.39)
CIE-LCHlch(63.48, 57.82, 308.28°)
OKLaboklab(69.96% 0.0774 -0.1269)
OKLCHoklch(69.96% 0.149 301.4)
XYZxyz(41.1963, 32.1622, 82.6187)
Luminance0.3216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86EB #C2EB86
analogous
#8690EB #AF86EB #E186EB
triadic
#AF86EB #EBAF86 #86EBAF
tetradic
#AF86EB #EB8690 #C2EB86 #86EBE1
square
#AF86EB #EB8690 #C2EB86 #86EBE1
split-complementary
#AF86EB #EBE186 #90EB86
monochromatic
#6B23D4 #8C51E2 #AF86EB #D2BBF4 #EEE5FB

Accessibility & contrast

On white

2.83
#AF86EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#AF86EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86EB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86EB#FFFFFF#000000##000000
##AF86EB1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EF
Deuteranopia (green-blind)
#7499E8
Tritanopia (blue-blind)
#A497AD
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af86eb;
/* rgb */ color: rgb(175, 134, 235);
/* oklch */ color: oklch(70.0% 0.149 301.4);
Tailwind
colors: {
  custom: {
    50: '#c9aaf2',
    500: '#af86eb',
    950: '#000000',
  },
}
SCSS
$custom: #af86eb;
$custom-light: #c9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af86eb",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 235
  },
  "hsl": {
    "h": 264.356,
    "s": 71.631,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69962,
    "c": 0.14861,
    "h": 301.4
  },
  "luminance": 0.32162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF86EB

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

Preview Lab → · Contrast checker → · Palette generator →

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