#AF8BFE#AF8BFE

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

Color values

HEX#AF8BFE
RGBrgb(175, 139, 254)
HSLhsl(259, 98%, 77%)
HSVhsv(259, 45%, 100%)
CMYKcmyk(31.1%, 45.3%, 0%, 0.4%)
CIE-LABlab(65.54, 37.64, -52.57)
CIE-LCHlch(65.54, 64.66, 305.60°)
OKLaboklab(71.82% 0.0735 -0.1478)
OKLCHoklch(71.82% 0.165 296.4)
XYZxyz(44.7968, 34.7344, 98.0910)
Luminance0.3473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BFE #DAFE8B
analogous
#8BA0FE #AF8BFE #E98BFE
triadic
#AF8BFE #FEAF8B #8BFEAF
tetradic
#AF8BFE #FE8BA0 #DAFE8B #8BFEE9
square
#AF8BFE #FE8BA0 #DAFE8B #8BFEE9
split-complementary
#AF8BFE #FEE98B #A0FE8B
monochromatic
#5B12FD #854EFD #AF8BFE #D9C8FF #EAE1FF

Accessibility & contrast

On white

2.64
#AF8BFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#AF8BFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BFE
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BFE#FFFFFF#000000##000000
##AF8BFE1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#66A0FF
Deuteranopia (green-blind)
#6D9EFB
Tritanopia (blue-blind)
#9EA0B8
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8bfe;
/* rgb */ color: rgb(175, 139, 254);
/* oklch */ color: oklch(71.8% 0.165 296.4);
Tailwind
colors: {
  custom: {
    50: '#caadff',
    500: '#af8bfe',
    950: '#000000',
  },
}
SCSS
$custom: #af8bfe;
$custom-light: #caadff;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bfe",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 254
  },
  "hsl": {
    "h": 258.783,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.71818,
    "c": 0.16504,
    "h": 296.4
  },
  "luminance": 0.34735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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