#AF89EB#AF89EB

#AF89EB is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.5% C 0.144 H 300.6°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AF89EB
RGBrgb(175, 137, 235)
HSLhsl(263, 71%, 73%)
HSVhsv(263, 42%, 92%)
CMYKcmyk(25.5%, 41.7%, 0%, 7.8%)
CIE-LABlab(64.16, 34.14, -44.31)
CIE-LCHlch(64.16, 55.94, 307.62°)
OKLaboklab(70.48% 0.0733 -0.1237)
OKLCHoklch(70.48% 0.144 300.6)
XYZxyz(41.6169, 33.0033, 82.7589)
Luminance0.3300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89EB #C5EB89
analogous
#8994EB #AF89EB #E089EB
triadic
#AF89EB #EBAF89 #89EBAF
tetradic
#AF89EB #EB8994 #C5EB89 #89EBE0
square
#AF89EB #EB8994 #C5EB89 #89EBE0
split-complementary
#AF89EB #EBE089 #94EB89
monochromatic
#6924D5 #8C55E2 #AF89EB #D2BDF4 #EDE5FB

Accessibility & contrast

On white

2.76
#AF89EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AF89EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89EB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89EB#FFFFFF#000000##000000
##AF89EB1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEF
Deuteranopia (green-blind)
#779BE8
Tritanopia (blue-blind)
#A49AAF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af89eb;
/* rgb */ color: rgb(175, 137, 235);
/* oklch */ color: oklch(70.5% 0.144 300.6);
Tailwind
colors: {
  custom: {
    50: '#c9acf2',
    500: '#af89eb',
    950: '#000000',
  },
}
SCSS
$custom: #af89eb;
$custom-light: #c9acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af89eb",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 235
  },
  "hsl": {
    "h": 263.265,
    "s": 71.014,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7048,
    "c": 0.14382,
    "h": 300.6
  },
  "luminance": 0.33003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF89EB

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

Preview Lab → · Contrast checker → · Palette generator →

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