#AF8BFB#AF8BFB

#AF8BFB is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.7% C 0.161 H 297.0°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#AF8BFB
RGBrgb(175, 139, 251)
HSLhsl(259, 93%, 76%)
HSVhsv(259, 45%, 98%)
CMYKcmyk(30.3%, 44.6%, 0%, 1.6%)
CIE-LABlab(65.39, 36.90, -51.17)
CIE-LCHlch(65.39, 63.08, 305.80°)
OKLaboklab(71.66% 0.0731 -0.1437)
OKLCHoklch(71.66% 0.161 297)
XYZxyz(44.3202, 34.5437, 95.5807)
Luminance0.3454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BFB #D7FB8B
analogous
#8B9FFB #AF8BFB #E78BFB
triadic
#AF8BFB #FBAF8B #8BFBAF
tetradic
#AF8BFB #FB8B9F #D7FB8B #8BFBE7
square
#AF8BFB #FB8B9F #D7FB8B #8BFBE7
split-complementary
#AF8BFB #FBE78B #9FFB8B
monochromatic
#5D15F7 #8650F9 #AF8BFB #D8C6FD #EBE1FE

Accessibility & contrast

On white

2.66
#AF8BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#AF8BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BFB
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BFB#FFFFFF#000000##000000
##AF8BFB1.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af8bfb;
/* rgb */ color: rgb(175, 139, 251);
/* oklch */ color: oklch(71.7% 0.161 297.0);
Tailwind
colors: {
  custom: {
    50: '#c9adfd',
    500: '#af8bfb',
    950: '#000000',
  },
}
SCSS
$custom: #af8bfb;
$custom-light: #c9adfd;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bfb",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 259.286,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71657,
    "c": 0.16121,
    "h": 297
  },
  "luminance": 0.34544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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