#AF89F7#AF89F7

#AF89F7 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.1% C 0.159 H 298.2°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#AF89F7
RGBrgb(175, 137, 247)
HSLhsl(261, 87%, 75%)
HSVhsv(261, 45%, 97%)
CMYKcmyk(29.1%, 44.5%, 0%, 3.1%)
CIE-LABlab(64.74, 37.03, -50.01)
CIE-LCHlch(64.74, 62.23, 306.52°)
OKLaboklab(71.1% 0.0752 -0.1403)
OKLCHoklch(71.1% 0.159 298.2)
XYZxyz(43.4094, 33.7203, 92.1993)
Luminance0.3372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89F7 #D1F789
analogous
#899AF7 #AF89F7 #E689F7
triadic
#AF89F7 #F7AF89 #89F7AF
tetradic
#AF89F7 #F7899A #D1F789 #89F7E6
square
#AF89F7 #F7899A #D1F789 #89F7E6
split-complementary
#AF89F7 #F7E689 #9AF789
monochromatic
#6116EF #8850F3 #AF89F7 #D6C2FB #ECE2FD

Accessibility & contrast

On white

2.71
#AF89F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#AF89F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89F7
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89F7#FFFFFF#000000##000000
##AF89F71.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#689DFB
Deuteranopia (green-blind)
#709CF4
Tritanopia (blue-blind)
#A09DB4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af89f7;
/* rgb */ color: rgb(175, 137, 247);
/* oklch */ color: oklch(71.1% 0.159 298.2);
Tailwind
colors: {
  custom: {
    50: '#c9acfa',
    500: '#af89f7',
    950: '#000000',
  },
}
SCSS
$custom: #af89f7;
$custom-light: #c9acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af89f7",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 247
  },
  "hsl": {
    "h": 260.727,
    "s": 87.302,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71102,
    "c": 0.15916,
    "h": 298.2
  },
  "luminance": 0.33721
}

Semantic roles & 50–950 ramp

primary
#AF89F7
secondary
#EAF5D6
accent
#E40296
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89F7

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

Preview Lab → · Contrast checker → · Palette generator →

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