#AF89FE#AF89FE

#AF89FE is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.5% C 0.168 H 296.9°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#AF89FE
RGBrgb(175, 137, 254)
HSLhsl(259, 98%, 77%)
HSVhsv(259, 46%, 100%)
CMYKcmyk(31.1%, 46.1%, 0%, 0.4%)
CIE-LABlab(65.09, 38.75, -53.29)
CIE-LCHlch(65.09, 65.89, 306.03°)
OKLaboklab(71.48% 0.0761 -0.1499)
OKLCHoklch(71.48% 0.168 296.9)
XYZxyz(44.5099, 34.1605, 97.9954)
Luminance0.3416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89FE #D8FE89
analogous
#899EFE #AF89FE #E989FE
triadic
#AF89FE #FEAF89 #89FEAF
tetradic
#AF89FE #FE899E #D8FE89 #89FEE9
square
#AF89FE #FE899E #D8FE89 #89FEE9
split-complementary
#AF89FE #FEE989 #9EFE89
monochromatic
#5D10FD #864CFD #AF89FE #D8C6FF #EAE1FF

Accessibility & contrast

On white

2.68
#AF89FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#AF89FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89FE
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89FE#FFFFFF#000000##000000
##AF89FE1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#6B9DFB
Tritanopia (blue-blind)
#9E9FB7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af89fe;
/* rgb */ color: rgb(175, 137, 254);
/* oklch */ color: oklch(71.5% 0.168 296.9);
Tailwind
colors: {
  custom: {
    50: '#caacff',
    500: '#af89fe',
    950: '#000000',
  },
}
SCSS
$custom: #af89fe;
$custom-light: #caacff;
$custom-dark: #000000;
JSON
{
  "hex": "#af89fe",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 254
  },
  "hsl": {
    "h": 259.487,
    "s": 98.319,
    "l": 76.667
  },
  "oklch": {
    "l": 0.71479,
    "c": 0.16807,
    "h": 296.9
  },
  "luminance": 0.34161
}

Semantic roles & 50–950 ramp

primary
#AF89FE
secondary
#ECF7D4
accent
#E6009B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF89FE

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

Preview Lab → · Contrast checker → · Palette generator →

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