#AF89E2#AF89E2

#AF89E2 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.0% C 0.132 H 302.8°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#AF89E2
RGBrgb(175, 137, 226)
HSLhsl(266, 61%, 71%)
HSVhsv(266, 39%, 89%)
CMYKcmyk(22.6%, 39.4%, 0%, 11.4%)
CIE-LABlab(63.75, 32.03, -39.97)
CIE-LCHlch(63.75, 51.22, 308.70°)
OKLaboklab(70.03% 0.0717 -0.1112)
OKLCHoklch(70.03% 0.132 302.8)
XYZxyz(40.3494, 32.4963, 76.0835)
Luminance0.3250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89E2 #BCE289
analogous
#898FE2 #AF89E2 #DB89E2
triadic
#AF89E2 #E2AF89 #89E2AF
tetradic
#AF89E2 #E2898F #BCE289 #89E2DB
square
#AF89E2 #E2898F #BCE289 #89E2DB
split-complementary
#AF89E2 #E2DB89 #8FE289
monochromatic
#6E2FC1 #8E58D6 #AF89E2 #D0BAEE #EEE6F9

Accessibility & contrast

On white

2.80
#AF89E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#AF89E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89E2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89E2#FFFFFF#000000##000000
##AF89E21.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#739AE5
Deuteranopia (green-blind)
#7B9AE0
Tritanopia (blue-blind)
#A697AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af89e2;
/* rgb */ color: rgb(175, 137, 226);
/* oklch */ color: oklch(70.0% 0.132 302.8);
Tailwind
colors: {
  custom: {
    50: '#c8aceb',
    500: '#af89e2',
    950: '#000000',
  },
}
SCSS
$custom: #af89e2;
$custom-light: #c8aceb;
$custom-dark: #000000;
JSON
{
  "hex": "#af89e2",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 226
  },
  "hsl": {
    "h": 265.618,
    "s": 60.544,
    "l": 71.176
  },
  "oklch": {
    "l": 0.70033,
    "c": 0.13227,
    "h": 302.8
  },
  "luminance": 0.32496
}

Semantic roles & 50–950 ramp

primary
#AF89E2
secondary
#E5EFD8
accent
#C81D7F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF89E2

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

Preview Lab → · Contrast checker → · Palette generator →

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