#AF89EF#AF89EF

#AF89EF is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.7% C 0.149 H 299.8°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#AF89EF
RGBrgb(175, 137, 239)
HSLhsl(262, 76%, 74%)
HSVhsv(262, 43%, 94%)
CMYKcmyk(26.8%, 42.7%, 0%, 6.3%)
CIE-LABlab(64.35, 35.10, -46.22)
CIE-LCHlch(64.35, 58.04, 307.21°)
OKLaboklab(70.68% 0.074 -0.1293)
OKLCHoklch(70.68% 0.149 299.8)
XYZxyz(42.2013, 33.2370, 85.8367)
Luminance0.3324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89EF #C9EF89
analogous
#8996EF #AF89EF #E289EF
triadic
#AF89EF #EFAF89 #89EFAF
tetradic
#AF89EF #EF8996 #C9EF89 #89EFE2
square
#AF89EF #EF8996 #C9EF89 #89EFE2
split-complementary
#AF89EF #EFE289 #96EF89
monochromatic
#661EDF #8A53E8 #AF89EF #D4BFF6 #EDE4FB

Accessibility & contrast

On white

2.75
#AF89EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#AF89EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89EF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89EF#FFFFFF#000000##000000
##AF89EF1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF3
Deuteranopia (green-blind)
#749BEC
Tritanopia (blue-blind)
#A39BB1
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af89ef;
/* rgb */ color: rgb(175, 137, 239);
/* oklch */ color: oklch(70.7% 0.149 299.8);
Tailwind
colors: {
  custom: {
    50: '#c9acf4',
    500: '#af89ef',
    950: '#000000',
  },
}
SCSS
$custom: #af89ef;
$custom-light: #c9acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af89ef",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 239
  },
  "hsl": {
    "h": 262.353,
    "s": 76.119,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70684,
    "c": 0.14894,
    "h": 299.8
  },
  "luminance": 0.33237
}

Semantic roles & 50–950 ramp

primary
#AF89EF
secondary
#E9F3D8
accent
#D80D8D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89EF

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

Preview Lab → · Contrast checker → · Palette generator →

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