#AF8BFD#AF8BFD

#AF8BFD is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.8% C 0.164 H 296.6°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#AF8BFD
RGBrgb(175, 139, 253)
HSLhsl(259, 97%, 77%)
HSVhsv(259, 45%, 99%)
CMYKcmyk(30.8%, 45.1%, 0%, 0.8%)
CIE-LABlab(65.49, 37.39, -52.11)
CIE-LCHlch(65.49, 64.13, 305.66°)
OKLaboklab(71.76% 0.0734 -0.1464)
OKLCHoklch(71.76% 0.164 296.6)
XYZxyz(44.6371, 34.6705, 97.2498)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BFD #D9FD8B
analogous
#8BA0FD #AF8BFD #E88BFD
triadic
#AF8BFD #FDAF8B #8BFDAF
tetradic
#AF8BFD #FD8BA0 #D9FD8B #8BFDE8
square
#AF8BFD #FD8BA0 #D9FD8B #8BFDE8
split-complementary
#AF8BFD #FDE88B #A0FD8B
monochromatic
#5C13FB #864FFC #AF8BFD #D8C7FE #EAE1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8BFD#FFFFFF#000000##000000
##AF8BFD1.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)
#67A0FF
Deuteranopia (green-blind)
#6E9EFA
Tritanopia (blue-blind)
#9EA0B8
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8bfd;
/* rgb */ color: rgb(175, 139, 253);
/* oklch */ color: oklch(71.8% 0.164 296.6);
Tailwind
colors: {
  custom: {
    50: '#caadfe',
    500: '#af8bfd',
    950: '#000000',
  },
}
SCSS
$custom: #af8bfd;
$custom-light: #caadfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bfd",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 253
  },
  "hsl": {
    "h": 258.947,
    "s": 96.61,
    "l": 76.863
  },
  "oklch": {
    "l": 0.71764,
    "c": 0.16377,
    "h": 296.6
  },
  "luminance": 0.34671
}

Semantic roles & 50–950 ramp

primary
#AF8BFD
secondary
#ECF7D4
accent
#E6009D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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