#AF89F8#AF89F8

#AF89F8 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.2% C 0.160 H 298.0°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#AF89F8
RGBrgb(175, 137, 248)
HSLhsl(261, 89%, 75%)
HSVhsv(261, 45%, 97%)
CMYKcmyk(29.4%, 44.8%, 0%, 2.7%)
CIE-LABlab(64.79, 37.28, -50.48)
CIE-LCHlch(64.79, 62.75, 306.45°)
OKLaboklab(71.16% 0.0753 -0.1417)
OKLCHoklch(71.16% 0.16 298)
XYZxyz(43.5641, 33.7822, 93.0142)
Luminance0.3378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89F8 #D2F889
analogous
#899AF8 #AF89F8 #E789F8
triadic
#AF89F8 #F8AF89 #89F8AF
tetradic
#AF89F8 #F8899A #D2F889 #89F8E7
square
#AF89F8 #F8899A #D2F889 #89F8E7
split-complementary
#AF89F8 #F8E789 #9AF889
monochromatic
#6115F1 #884FF5 #AF89F8 #D6C3FB #EBE2FD

Accessibility & contrast

On white

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

On black

7.76
#AF89F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89F8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89F8#FFFFFF#000000##000000
##AF89F81.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#679DFC
Deuteranopia (green-blind)
#6F9CF5
Tritanopia (blue-blind)
#A09DB5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af89f8;
/* rgb */ color: rgb(175, 137, 248);
/* oklch */ color: oklch(71.2% 0.160 298.0);
Tailwind
colors: {
  custom: {
    50: '#c9acfb',
    500: '#af89f8',
    950: '#000000',
  },
}
SCSS
$custom: #af89f8;
$custom-light: #c9acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af89f8",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 248
  },
  "hsl": {
    "h": 260.541,
    "s": 88.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71156,
    "c": 0.16043,
    "h": 298
  },
  "luminance": 0.33783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF89F8

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

Preview Lab → · Contrast checker → · Palette generator →

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