#AF89FA#AF89FA

#AF89FA is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.163 H 297.6°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#AF89FA
RGBrgb(175, 137, 250)
HSLhsl(260, 92%, 76%)
HSVhsv(260, 45%, 98%)
CMYKcmyk(30%, 45.2%, 0%, 2%)
CIE-LABlab(64.89, 37.77, -51.42)
CIE-LCHlch(64.89, 63.80, 306.30°)
OKLaboklab(71.26% 0.0756 -0.1444)
OKLCHoklch(71.26% 0.163 297.6)
XYZxyz(43.8760, 33.9069, 94.6571)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89FA #D4FA89
analogous
#899BFA #AF89FA #E789FA
triadic
#AF89FA #FAAF89 #89FAAF
tetradic
#AF89FA #FA899B #D4FA89 #89FAE7
square
#AF89FA #FA899B #D4FA89 #89FAE7
split-complementary
#AF89FA #FAE789 #9BFA89
monochromatic
#5F14F5 #874EF8 #AF89FA #D7C4FC #EBE2FE

Accessibility & contrast

On white

2.70
#AF89FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#AF89FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89FA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89FA#FFFFFF#000000##000000
##AF89FA1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFE
Deuteranopia (green-blind)
#6E9CF7
Tritanopia (blue-blind)
#9F9EB6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af89fa;
/* rgb */ color: rgb(175, 137, 250);
/* oklch */ color: oklch(71.3% 0.163 297.6);
Tailwind
colors: {
  custom: {
    50: '#c9acfc',
    500: '#af89fa',
    950: '#000000',
  },
}
SCSS
$custom: #af89fa;
$custom-light: #c9acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#af89fa",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 250
  },
  "hsl": {
    "h": 260.177,
    "s": 91.87,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71263,
    "c": 0.16298,
    "h": 297.6
  },
  "luminance": 0.33907
}

Semantic roles & 50–950 ramp

primary
#AF89FA
secondary
#EBF6D5
accent
#E60098
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89FA

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

Preview Lab → · Contrast checker → · Palette generator →

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