#AF89F9#AF89F9

#AF89F9 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.2% C 0.162 H 297.8°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#AF89F9
RGBrgb(175, 137, 249)
HSLhsl(260, 90%, 76%)
HSVhsv(260, 45%, 98%)
CMYKcmyk(29.7%, 45%, 0%, 2.4%)
CIE-LABlab(64.84, 37.52, -50.95)
CIE-LCHlch(64.84, 63.27, 306.37°)
OKLaboklab(71.21% 0.0755 -0.143)
OKLCHoklch(71.21% 0.162 297.8)
XYZxyz(43.7196, 33.8444, 93.8334)
Luminance0.3384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89F9 #D3F989
analogous
#899BF9 #AF89F9 #E789F9
triadic
#AF89F9 #F9AF89 #89F9AF
tetradic
#AF89F9 #F9899B #D3F989 #89F9E7
square
#AF89F9 #F9899B #D3F989 #89F9E7
split-complementary
#AF89F9 #F9E789 #9BF989
monochromatic
#6015F3 #884FF6 #AF89F9 #D6C3FC #EBE2FE

Accessibility & contrast

On white

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

On black

7.77
#AF89F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89F9
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89F9#FFFFFF#000000##000000
##AF89F91.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#679EFD
Deuteranopia (green-blind)
#6E9CF6
Tritanopia (blue-blind)
#A09DB5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af89f9;
/* rgb */ color: rgb(175, 137, 249);
/* oklch */ color: oklch(71.2% 0.162 297.8);
Tailwind
colors: {
  custom: {
    50: '#c9acfc',
    500: '#af89f9',
    950: '#000000',
  },
}
SCSS
$custom: #af89f9;
$custom-light: #c9acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#af89f9",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 249
  },
  "hsl": {
    "h": 260.357,
    "s": 90.323,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71209,
    "c": 0.16171,
    "h": 297.8
  },
  "luminance": 0.33845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF89F9

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

Preview Lab → · Contrast checker → · Palette generator →

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