#AF8FE9#AF8FE9

#AF8FE9 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.4% C 0.132 H 299.4°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#AF8FE9
RGBrgb(175, 143, 233)
HSLhsl(261, 67%, 74%)
HSVhsv(261, 39%, 91%)
CMYKcmyk(24.9%, 38.6%, 0%, 8.6%)
CIE-LABlab(65.47, 30.30, -41.16)
CIE-LCHlch(65.47, 51.11, 306.36°)
OKLaboklab(71.44% 0.0647 -0.1146)
OKLCHoklch(71.44% 0.132 299.4)
XYZxyz(42.2063, 34.6418, 81.5380)
Luminance0.3464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8FE9 #C9E98F
analogous
#8F9CE9 #AF8FE9 #DC8FE9
triadic
#AF8FE9 #E9AF8F #8FE9AF
tetradic
#AF8FE9 #E98F9C #C9E98F #8FE9DC
square
#AF8FE9 #E98F9C #C9E98F #8FE9DC
split-complementary
#AF8FE9 #E9DC8F #9CE98F
monochromatic
#662AD4 #8A5CDF #AF8FE9 #D4C2F3 #EDE5FA

Accessibility & contrast

On white

2.65
#AF8FE9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#AF8FE9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8FE9
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8FE9#FFFFFF#000000##000000
##AF8FE91.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#789FEC
Deuteranopia (green-blind)
#7E9EE7
Tritanopia (blue-blind)
#A49EB1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8fe9;
/* rgb */ color: rgb(175, 143, 233);
/* oklch */ color: oklch(71.4% 0.132 299.4);
Tailwind
colors: {
  custom: {
    50: '#c8b0f0',
    500: '#af8fe9',
    950: '#000000',
  },
}
SCSS
$custom: #af8fe9;
$custom-light: #c8b0f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af8fe9",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 233
  },
  "hsl": {
    "h": 261.333,
    "s": 67.164,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71438,
    "c": 0.1316,
    "h": 299.4
  },
  "luminance": 0.34642
}

Semantic roles & 50–950 ramp

primary
#AF8FE9
secondary
#E9F1DA
accent
#CF168D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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