#AF89DF#AF89DF

#AF89DF is a light, vivid violet. Relative luminance 0.323; OKLCH L 69.9% C 0.128 H 303.6°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AF89DF
RGBrgb(175, 137, 223)
HSLhsl(267, 57%, 71%)
HSVhsv(267, 39%, 87%)
CMYKcmyk(21.5%, 38.6%, 0%, 12.5%)
CIE-LABlab(63.62, 31.33, -38.52)
CIE-LCHlch(63.62, 49.65, 309.13°)
OKLaboklab(69.89% 0.0711 -0.107)
OKLCHoklch(69.89% 0.128 303.6)
XYZxyz(39.9413, 32.3331, 73.9344)
Luminance0.3233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89DF #B9DF89
analogous
#898EDF #AF89DF #DA89DF
triadic
#AF89DF #DFAF89 #89DFAF
tetradic
#AF89DF #DF898E #B9DF89 #89DFDA
square
#AF89DF #DF898E #B9DF89 #89DFDA
split-complementary
#AF89DF #DFDA89 #8EDF89
monochromatic
#6F33BB #8E59D2 #AF89DF #D0B9EC #EFE7F8

Accessibility & contrast

On white

2.81
#AF89DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AF89DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89DF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89DF#FFFFFF#000000##000000
##AF89DF1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7599E2
Deuteranopia (green-blind)
#7D9ADD
Tritanopia (blue-blind)
#A797A9
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af89df;
/* rgb */ color: rgb(175, 137, 223);
/* oklch */ color: oklch(69.9% 0.128 303.6);
Tailwind
colors: {
  custom: {
    50: '#c8ace9',
    500: '#af89df',
    950: '#000000',
  },
}
SCSS
$custom: #af89df;
$custom-light: #c8ace9;
$custom-dark: #000000;
JSON
{
  "hex": "#af89df",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 223
  },
  "hsl": {
    "h": 266.512,
    "s": 57.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69888,
    "c": 0.12843,
    "h": 303.6
  },
  "luminance": 0.32333
}

Semantic roles & 50–950 ramp

primary
#AF89DF
secondary
#E3EED6
accent
#C5217C
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF89DF

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

Preview Lab → · Contrast checker → · Palette generator →

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