#AF89F5#AF89F5

#AF89F5 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.0% C 0.157 H 298.6°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#AF89F5
RGBrgb(175, 137, 245)
HSLhsl(261, 84%, 75%)
HSVhsv(261, 44%, 96%)
CMYKcmyk(28.6%, 44.1%, 0%, 3.9%)
CIE-LABlab(64.64, 36.55, -49.06)
CIE-LCHlch(64.64, 61.18, 306.68°)
OKLaboklab(71% 0.0749 -0.1375)
OKLCHoklch(71% 0.157 298.6)
XYZxyz(43.1024, 33.5975, 90.5827)
Luminance0.3360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89F5 #CFF589
analogous
#8999F5 #AF89F5 #E589F5
triadic
#AF89F5 #F5AF89 #89F5AF
tetradic
#AF89F5 #F58999 #CFF589 #89F5E5
square
#AF89F5 #F58999 #CFF589 #89F5E5
split-complementary
#AF89F5 #F5E589 #99F589
monochromatic
#6218EB #8951F0 #AF89F5 #D5C1FA #ECE3FD

Accessibility & contrast

On white

2.72
#AF89F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#AF89F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89F5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89F5#FFFFFF#000000##000000
##AF89F51.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#699DF9
Deuteranopia (green-blind)
#719CF2
Tritanopia (blue-blind)
#A19CB3
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af89f5;
/* rgb */ color: rgb(175, 137, 245);
/* oklch */ color: oklch(71.0% 0.157 298.6);
Tailwind
colors: {
  custom: {
    50: '#c9acf9',
    500: '#af89f5',
    950: '#000000',
  },
}
SCSS
$custom: #af89f5;
$custom-light: #c9acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af89f5",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 245
  },
  "hsl": {
    "h": 261.111,
    "s": 84.375,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70997,
    "c": 0.15661,
    "h": 298.6
  },
  "luminance": 0.33598
}

Semantic roles & 50–950 ramp

primary
#AF89F5
secondary
#EAF5D6
accent
#E10593
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89F5

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

Preview Lab → · Contrast checker → · Palette generator →

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