#AF8FFE#AF8FFE

#AF8FFE is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.5% C 0.159 H 295.4°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#AF8FFE
RGBrgb(175, 143, 254)
HSLhsl(257, 98%, 78%)
HSVhsv(257, 44%, 100%)
CMYKcmyk(31.1%, 43.7%, 0%, 0.4%)
CIE-LABlab(66.45, 35.40, -51.13)
CIE-LCHlch(66.45, 62.19, 304.70°)
OKLaboklab(72.51% 0.0683 -0.1436)
OKLCHoklch(72.51% 0.159 295.4)
XYZxyz(45.3866, 35.9140, 98.2876)
Luminance0.3592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8FFE #DEFE8F
analogous
#8FA7FE #AF8FFE #E68FFE
triadic
#AF8FFE #FEAF8F #8FFEAF
tetradic
#AF8FFE #FE8FA7 #DEFE8F #8FFEE6
square
#AF8FFE #FE8FA7 #DEFE8F #8FFEE6
split-complementary
#AF8FFE #FEE68F #A7FE8F
monochromatic
#5816FD #8452FD #AF8FFE #DACCFF #E9E1FF

Accessibility & contrast

On white

2.57
#AF8FFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#AF8FFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8FFE
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8FFE#FFFFFF#000000##000000
##AF8FFE1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#72A0FB
Tritanopia (blue-blind)
#9EA3BA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af8ffe;
/* rgb */ color: rgb(175, 143, 254);
/* oklch */ color: oklch(72.5% 0.159 295.4);
Tailwind
colors: {
  custom: {
    50: '#c9b0ff',
    500: '#af8ffe',
    950: '#000000',
  },
}
SCSS
$custom: #af8ffe;
$custom-light: #c9b0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ffe",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 254
  },
  "hsl": {
    "h": 257.297,
    "s": 98.23,
    "l": 77.843
  },
  "oklch": {
    "l": 0.72505,
    "c": 0.15898,
    "h": 295.4
  },
  "luminance": 0.35915
}

Semantic roles & 50–950 ramp

primary
#AF8FFE
secondary
#EDF7D4
accent
#E600A3
background
#FCFAFF
surface
#F9F5FF
border
#D2CFD7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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