#AF89EC#AF89EC

#AF89EC is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.5% C 0.145 H 300.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF89EC
RGBrgb(175, 137, 236)
HSLhsl(263, 72%, 73%)
HSVhsv(263, 42%, 93%)
CMYKcmyk(25.8%, 41.9%, 0%, 7.5%)
CIE-LABlab(64.21, 34.38, -44.79)
CIE-LCHlch(64.21, 56.46, 307.51°)
OKLaboklab(70.53% 0.0735 -0.1251)
OKLCHoklch(70.53% 0.145 300.4)
XYZxyz(41.7618, 33.0612, 83.5219)
Luminance0.3306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89EC #C6EC89
analogous
#8994EC #AF89EC #E089EC
triadic
#AF89EC #ECAF89 #89ECAF
tetradic
#AF89EC #EC8994 #C6EC89 #89ECE0
square
#AF89EC #EC8994 #C6EC89 #89ECE0
split-complementary
#AF89EC #ECE089 #94EC89
monochromatic
#6823D8 #8B54E4 #AF89EC #D3BEF4 #EDE5FB

Accessibility & contrast

On white

2.76
#AF89EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AF89EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89EC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89EC#FFFFFF#000000##000000
##AF89EC1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#A49AAF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af89ec;
/* rgb */ color: rgb(175, 137, 236);
/* oklch */ color: oklch(70.5% 0.145 300.4);
Tailwind
colors: {
  custom: {
    50: '#c9acf2',
    500: '#af89ec',
    950: '#000000',
  },
}
SCSS
$custom: #af89ec;
$custom-light: #c9acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af89ec",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 236
  },
  "hsl": {
    "h": 263.03,
    "s": 72.263,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70531,
    "c": 0.14509,
    "h": 300.4
  },
  "luminance": 0.33061
}

Semantic roles & 50–950 ramp

primary
#AF89EC
secondary
#E8F2D9
accent
#D41189
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89EC

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

Preview Lab → · Contrast checker → · Palette generator →

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