#AF89FC#AF89FC

#AF89FC is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.4% C 0.166 H 297.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF89FC
RGBrgb(175, 137, 252)
HSLhsl(260, 95%, 76%)
HSVhsv(260, 46%, 99%)
CMYKcmyk(30.6%, 45.6%, 0%, 1.2%)
CIE-LABlab(64.99, 38.26, -52.35)
CIE-LCHlch(64.99, 64.84, 306.16°)
OKLaboklab(71.37% 0.0758 -0.1471)
OKLCHoklch(71.37% 0.166 297.3)
XYZxyz(44.1913, 34.0331, 96.3174)
Luminance0.3403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89FC #D6FC89
analogous
#899DFC #AF89FC #E989FC
triadic
#AF89FC #FCAF89 #89FCAF
tetradic
#AF89FC #FC899D #D6FC89 #89FCE9
square
#AF89FC #FC899D #D6FC89 #89FCE9
split-complementary
#AF89FC #FCE989 #9DFC89
monochromatic
#5E12F9 #874DFA #AF89FC #D7C5FE #EBE1FE

Accessibility & contrast

On white

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

On black

7.81
#AF89FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89FC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89FC#FFFFFF#000000##000000
##AF89FC1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#6C9CF9
Tritanopia (blue-blind)
#9F9EB7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af89fc;
/* rgb */ color: rgb(175, 137, 252);
/* oklch */ color: oklch(71.4% 0.166 297.3);
Tailwind
colors: {
  custom: {
    50: '#caacfe',
    500: '#af89fc',
    950: '#000000',
  },
}
SCSS
$custom: #af89fc;
$custom-light: #caacfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af89fc",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 252
  },
  "hsl": {
    "h": 259.826,
    "s": 95.041,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7137,
    "c": 0.16553,
    "h": 297.3
  },
  "luminance": 0.34034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF89FC

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

Preview Lab → · Contrast checker → · Palette generator →

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