#AF89F2#AF89F2

#AF89F2 is a light, vivid violet. Relative luminance 0.334; OKLCH L 70.8% C 0.153 H 299.2°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF89F2
RGBrgb(175, 137, 242)
HSLhsl(262, 80%, 74%)
HSVhsv(262, 43%, 95%)
CMYKcmyk(27.7%, 43.4%, 0%, 5.1%)
CIE-LABlab(64.50, 35.82, -47.64)
CIE-LCHlch(64.50, 59.61, 306.94°)
OKLaboklab(70.84% 0.0744 -0.1334)
OKLCHoklch(70.84% 0.153 299.2)
XYZxyz(42.6481, 33.4158, 88.1902)
Luminance0.3342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF89F2 #CCF289
analogous
#8998F2 #AF89F2 #E389F2
triadic
#AF89F2 #F2AF89 #89F2AF
tetradic
#AF89F2 #F28998 #CCF289 #89F2E3
square
#AF89F2 #F28998 #CCF289 #89F2E3
split-complementary
#AF89F2 #F2E389 #98F289
monochromatic
#641BE6 #8A52EC #AF89F2 #D4C0F8 #ECE3FC

Accessibility & contrast

On white

2.73
#AF89F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#AF89F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF89F2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF89F2#FFFFFF#000000##000000
##AF89F21.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#739CEF
Tritanopia (blue-blind)
#A29CB2
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af89f2;
/* rgb */ color: rgb(175, 137, 242);
/* oklch */ color: oklch(70.8% 0.153 299.2);
Tailwind
colors: {
  custom: {
    50: '#c9acf7',
    500: '#af89f2',
    950: '#000000',
  },
}
SCSS
$custom: #af89f2;
$custom-light: #c9acf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af89f2",
  "rgb": {
    "r": 175,
    "g": 137,
    "b": 242
  },
  "hsl": {
    "h": 261.714,
    "s": 80.153,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70839,
    "c": 0.15277,
    "h": 299.2
  },
  "luminance": 0.33416
}

Semantic roles & 50–950 ramp

primary
#AF89F2
secondary
#E9F4D7
accent
#DC0990
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF89F2

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

Preview Lab → · Contrast checker → · Palette generator →

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