#AF89ED#AF89ED

#AF89ED is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.6% C 0.146 H 300.2°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AF89ED
RGBrgb(175, 137, 237)
HSLhsl(263, 74%, 73%)
HSVhsv(263, 42%, 93%)
CMYKcmyk(26.2%, 42.2%, 0%, 7.1%)
CIE-LABlab(64.26, 34.62, -45.26)
CIE-LCHlch(64.26, 56.99, 307.41°)
OKLaboklab(70.58% 0.0736 -0.1265)
OKLCHoklch(70.58% 0.146 300.2)
XYZxyz(41.9074, 33.1195, 84.2892)
Luminance0.3312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89ED #C7ED89
analogous
#8995ED #AF89ED #E189ED
triadic
#AF89ED #EDAF89 #89EDAF
tetradic
#AF89ED #ED8995 #C7ED89 #89EDE1
square
#AF89ED #ED8995 #C7ED89 #89EDE1
split-complementary
#AF89ED #EDE189 #95ED89
monochromatic
#6821DA #8B54E5 #AF89ED #D3BEF5 #EDE4FB

Accessibility & contrast

On white

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

On black

7.62
#AF89ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89ED
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89ED#FFFFFF#000000##000000
##AF89ED1.002.757.627.62
#FFFFFF2.751.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF1
Deuteranopia (green-blind)
#769BEA
Tritanopia (blue-blind)
#A39AB0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af89ed;
/* rgb */ color: rgb(175, 137, 237);
/* oklch */ color: oklch(70.6% 0.146 300.2);
Tailwind
colors: {
  custom: {
    50: '#c9acf3',
    500: '#af89ed',
    950: '#000000',
  },
}
SCSS
$custom: #af89ed;
$custom-light: #c9acf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af89ed",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 237
  },
  "hsl": {
    "h": 262.8,
    "s": 73.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70582,
    "c": 0.14637,
    "h": 300.2
  },
  "luminance": 0.3312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF89ED

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

Preview Lab → · Contrast checker → · Palette generator →

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