#AF89FB#AF89FB

#AF89FB is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.3% C 0.164 H 297.4°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#AF89FB
RGBrgb(175, 137, 251)
HSLhsl(260, 93%, 76%)
HSVhsv(260, 45%, 98%)
CMYKcmyk(30.3%, 45.4%, 0%, 1.6%)
CIE-LABlab(64.94, 38.01, -51.89)
CIE-LCHlch(64.94, 64.32, 306.23°)
OKLaboklab(71.32% 0.0757 -0.1458)
OKLCHoklch(71.32% 0.164 297.4)
XYZxyz(44.0332, 33.9698, 95.4850)
Luminance0.3397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89FB #D5FB89
analogous
#899CFB #AF89FB #E889FB
triadic
#AF89FB #FBAF89 #89FBAF
tetradic
#AF89FB #FB899C #D5FB89 #89FBE8
square
#AF89FB #FB899C #D5FB89 #89FBE8
split-complementary
#AF89FB #FBE889 #9CFB89
monochromatic
#5F13F7 #874EF9 #AF89FB #D7C4FD #EBE1FE

Accessibility & contrast

On white

2.69
#AF89FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#AF89FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89FB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89FB#FFFFFF#000000##000000
##AF89FB1.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#6D9CF8
Tritanopia (blue-blind)
#9F9EB6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af89fb;
/* rgb */ color: rgb(175, 137, 251);
/* oklch */ color: oklch(71.3% 0.164 297.4);
Tailwind
colors: {
  custom: {
    50: '#caacfd',
    500: '#af89fb',
    950: '#000000',
  },
}
SCSS
$custom: #af89fb;
$custom-light: #caacfd;
$custom-dark: #000000;
JSON
{
  "hex": "#af89fb",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 251
  },
  "hsl": {
    "h": 260,
    "s": 93.443,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71316,
    "c": 0.16426,
    "h": 297.4
  },
  "luminance": 0.3397
}

Semantic roles & 50–950 ramp

primary
#AF89FB
secondary
#EBF6D5
accent
#E60099
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF89FB

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

Preview Lab → · Contrast checker → · Palette generator →

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