#AF89DC#AF89DC

#AF89DC is a light, vivid violet. Relative luminance 0.322; OKLCH L 69.7% C 0.125 H 304.4°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#AF89DC
RGBrgb(175, 137, 220)
HSLhsl(267, 54%, 70%)
HSVhsv(267, 38%, 86%)
CMYKcmyk(20.5%, 37.7%, 0%, 13.7%)
CIE-LABlab(63.49, 30.64, -37.06)
CIE-LCHlch(63.49, 48.09, 309.59°)
OKLaboklab(69.75% 0.0704 -0.1028)
OKLCHoklch(69.75% 0.125 304.4)
XYZxyz(39.5405, 32.1727, 71.8232)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89DC #B6DC89
analogous
#898DDC #AF89DC #D889DC
triadic
#AF89DC #DCAF89 #89DCAF
tetradic
#AF89DC #DC898D #B6DC89 #89DCD8
square
#AF89DC #DC898D #B6DC89 #89DCD8
split-complementary
#AF89DC #DCD889 #8DDC89
monochromatic
#7036B5 #8F5ACE #AF89DC #CFB8EA #EFE7F8

Accessibility & contrast

On white

2.82
#AF89DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#AF89DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89DC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89DC#FFFFFF#000000##000000
##AF89DC1.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7699DF
Deuteranopia (green-blind)
#7E9ADA
Tritanopia (blue-blind)
#A896A8
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af89dc;
/* rgb */ color: rgb(175, 137, 220);
/* oklch */ color: oklch(69.7% 0.125 304.4);
Tailwind
colors: {
  custom: {
    50: '#c8ace7',
    500: '#af89dc',
    950: '#000000',
  },
}
SCSS
$custom: #af89dc;
$custom-light: #c8ace7;
$custom-dark: #000000;
JSON
{
  "hex": "#af89dc",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 220
  },
  "hsl": {
    "h": 267.47,
    "s": 54.248,
    "l": 70
  },
  "oklch": {
    "l": 0.69745,
    "c": 0.12459,
    "h": 304.4
  },
  "luminance": 0.32173
}

Semantic roles & 50–950 ramp

primary
#AF89DC
secondary
#E1ECD5
accent
#C22479
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF89DC

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

Preview Lab → · Contrast checker → · Palette generator →

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