#AF89FD#AF89FD

#AF89FD is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.4% C 0.167 H 297.1°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#AF89FD
RGBrgb(175, 137, 253)
HSLhsl(260, 97%, 76%)
HSVhsv(260, 46%, 99%)
CMYKcmyk(30.8%, 45.8%, 0%, 0.8%)
CIE-LABlab(65.04, 38.51, -52.82)
CIE-LCHlch(65.04, 65.37, 306.09°)
OKLaboklab(71.43% 0.076 -0.1485)
OKLCHoklch(71.43% 0.167 297.1)
XYZxyz(44.3502, 34.0966, 97.1542)
Luminance0.3410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89FD #D7FD89
analogous
#899DFD #AF89FD #E989FD
triadic
#AF89FD #FDAF89 #89FDAF
tetradic
#AF89FD #FD899D #D7FD89 #89FDE9
square
#AF89FD #FD899D #D7FD89 #89FDE9
split-complementary
#AF89FD #FDE989 #9DFD89
monochromatic
#5D11FB #864DFC #AF89FD #D8C5FE #EBE1FE

Accessibility & contrast

On white

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

On black

7.82
#AF89FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89FD
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89FD#FFFFFF#000000##000000
##AF89FD1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#6C9DFA
Tritanopia (blue-blind)
#9E9EB7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af89fd;
/* rgb */ color: rgb(175, 137, 253);
/* oklch */ color: oklch(71.4% 0.167 297.1);
Tailwind
colors: {
  custom: {
    50: '#caacfe',
    500: '#af89fd',
    950: '#000000',
  },
}
SCSS
$custom: #af89fd;
$custom-light: #caacfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af89fd",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 253
  },
  "hsl": {
    "h": 259.655,
    "s": 96.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71425,
    "c": 0.1668,
    "h": 297.1
  },
  "luminance": 0.34097
}

Semantic roles & 50–950 ramp

primary
#AF89FD
secondary
#EBF7D4
accent
#E6009A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF89FD

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

Preview Lab → · Contrast checker → · Palette generator →

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