#AF8DFF#AF8DFF

#AF8DFF is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.163 H 295.8°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#AF8DFF
RGBrgb(175, 141, 255)
HSLhsl(258, 100%, 78%)
HSVhsv(258, 45%, 100%)
CMYKcmyk(31.4%, 44.7%, 0%, 0%)
CIE-LABlab(66.05, 36.77, -52.32)
CIE-LCHlch(66.05, 63.95, 305.10°)
OKLaboklab(72.21% 0.071 -0.147)
OKLCHoklch(72.21% 0.163 295.8)
XYZxyz(45.2496, 35.3831, 99.0340)
Luminance0.3538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DFF #DDFF8D
analogous
#8DA4FF #AF8DFF #E88DFF
triadic
#AF8DFF #FFAF8D #8DFFAF
tetradic
#AF8DFF #FF8DA4 #DDFF8D #8DFFE8
square
#AF8DFF #FF8DA4 #DDFF8D #8DFFE8
split-complementary
#AF8DFF #FFE88D #A4FF8D
monochromatic
#5913FF #8450FF #AF8DFF #DACAFF #EAE0FF

Accessibility & contrast

On white

2.60
#AF8DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#AF8DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DFF
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DFF#FFFFFF#000000##000000
##AF8DFF1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A1FF
Deuteranopia (green-blind)
#6F9FFC
Tritanopia (blue-blind)
#9DA2BA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8dff;
/* rgb */ color: rgb(175, 141, 255);
/* oklch */ color: oklch(72.2% 0.163 295.8);
Tailwind
colors: {
  custom: {
    50: '#caafff',
    500: '#af8dff',
    950: '#000000',
  },
}
SCSS
$custom: #af8dff;
$custom-light: #caafff;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dff",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 255
  },
  "hsl": {
    "h": 257.895,
    "s": 100,
    "l": 77.647
  },
  "oklch": {
    "l": 0.72214,
    "c": 0.16329,
    "h": 295.8
  },
  "luminance": 0.35384
}

Semantic roles & 50–950 ramp

primary
#AF8DFF
secondary
#EDF7D4
accent
#E600A1
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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