#AF89E4#AF89E4

#AF89E4 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.1% C 0.135 H 302.3°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF89E4
RGBrgb(175, 137, 228)
HSLhsl(265, 63%, 72%)
HSVhsv(265, 40%, 89%)
CMYKcmyk(23.2%, 39.9%, 0%, 10.6%)
CIE-LABlab(63.84, 32.49, -40.94)
CIE-LCHlch(63.84, 52.27, 308.44°)
OKLaboklab(70.13% 0.072 -0.114)
OKLCHoklch(70.13% 0.135 302.3)
XYZxyz(40.6254, 32.6067, 77.5372)
Luminance0.3261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89E4 #BEE489
analogous
#8991E4 #AF89E4 #DD89E4
triadic
#AF89E4 #E4AF89 #89E4AF
tetradic
#AF89E4 #E48991 #BEE489 #89E4DD
square
#AF89E4 #E48991 #BEE489 #89E4DD
split-complementary
#AF89E4 #E4DD89 #91E489
monochromatic
#6D2DC5 #8D57D9 #AF89E4 #D1BBEF #EEE6F9

Accessibility & contrast

On white

2.79
#AF89E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF89E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89E4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89E4#FFFFFF#000000##000000
##AF89E41.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#729AE7
Deuteranopia (green-blind)
#7A9AE2
Tritanopia (blue-blind)
#A698AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af89e4;
/* rgb */ color: rgb(175, 137, 228);
/* oklch */ color: oklch(70.1% 0.135 302.3);
Tailwind
colors: {
  custom: {
    50: '#c8aced',
    500: '#af89e4',
    950: '#000000',
  },
}
SCSS
$custom: #af89e4;
$custom-light: #c8aced;
$custom-dark: #000000;
JSON
{
  "hex": "#af89e4",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 228
  },
  "hsl": {
    "h": 265.055,
    "s": 62.759,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70131,
    "c": 0.13484,
    "h": 302.3
  },
  "luminance": 0.32607
}

Semantic roles & 50–950 ramp

primary
#AF89E4
secondary
#E6F0D9
accent
#CB1B81
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF89E4

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

Preview Lab → · Contrast checker → · Palette generator →

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