#AF8BFC#AF8BFC

#AF8BFC is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.162 H 296.8°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#AF8BFC
RGBrgb(175, 139, 252)
HSLhsl(259, 95%, 77%)
HSVhsv(259, 45%, 99%)
CMYKcmyk(30.6%, 44.8%, 0%, 1.2%)
CIE-LABlab(65.44, 37.15, -51.64)
CIE-LCHlch(65.44, 63.61, 305.73°)
OKLaboklab(71.71% 0.0732 -0.145)
OKLCHoklch(71.71% 0.162 296.8)
XYZxyz(44.4782, 34.6069, 96.4131)
Luminance0.3461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BFC #D8FC8B
analogous
#8BA0FC #AF8BFC #E88BFC
triadic
#AF8BFC #FCAF8B #8BFCAF
tetradic
#AF8BFC #FC8BA0 #D8FC8B #8BFCE8
square
#AF8BFC #FC8BA0 #D8FC8B #8BFCE8
split-complementary
#AF8BFC #FCE88B #A0FC8B
monochromatic
#5D14F9 #864FFA #AF8BFC #D8C7FE #EAE1FE

Accessibility & contrast

On white

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

On black

7.92
#AF8BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BFC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BFC#FFFFFF#000000##000000
##AF8BFC1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#689FFF
Deuteranopia (green-blind)
#6F9EF9
Tritanopia (blue-blind)
#9FA0B7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8bfc;
/* rgb */ color: rgb(175, 139, 252);
/* oklch */ color: oklch(71.7% 0.162 296.8);
Tailwind
colors: {
  custom: {
    50: '#c9adfe',
    500: '#af8bfc',
    950: '#000000',
  },
}
SCSS
$custom: #af8bfc;
$custom-light: #c9adfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bfc",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 252
  },
  "hsl": {
    "h": 259.115,
    "s": 94.958,
    "l": 76.667
  },
  "oklch": {
    "l": 0.71711,
    "c": 0.16248,
    "h": 296.8
  },
  "luminance": 0.34607
}

Semantic roles & 50–950 ramp

primary
#AF8BFC
secondary
#ECF6D5
accent
#E6009C
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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