#AF8BF8#AF8BF8

#AF8BF8 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.5% C 0.157 H 297.5°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#AF8BF8
RGBrgb(175, 139, 248)
HSLhsl(260, 89%, 76%)
HSVhsv(260, 44%, 97%)
CMYKcmyk(29.4%, 44%, 0%, 2.7%)
CIE-LABlab(65.24, 36.16, -49.76)
CIE-LCHlch(65.24, 61.51, 306.01°)
OKLaboklab(71.5% 0.0727 -0.1396)
OKLCHoklch(71.5% 0.157 297.5)
XYZxyz(43.8510, 34.3561, 93.1098)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BF8 #D4F88B
analogous
#8B9DF8 #AF8BF8 #E68BF8
triadic
#AF8BF8 #F8AF8B #8BF8AF
tetradic
#AF8BF8 #F88B9D #D4F88B #8BF8E6
square
#AF8BF8 #F88B9D #D4F88B #8BF8E6
split-complementary
#AF8BF8 #F8E68B #9DF88B
monochromatic
#5F18F1 #8751F5 #AF8BF8 #D7C5FB #EBE2FD

Accessibility & contrast

On white

2.67
#AF8BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#AF8BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BF8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BF8#FFFFFF#000000##000000
##AF8BF81.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9FFC
Deuteranopia (green-blind)
#719DF5
Tritanopia (blue-blind)
#A09FB6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8bf8;
/* rgb */ color: rgb(175, 139, 248);
/* oklch */ color: oklch(71.5% 0.157 297.5);
Tailwind
colors: {
  custom: {
    50: '#c9adfb',
    500: '#af8bf8',
    950: '#000000',
  },
}
SCSS
$custom: #af8bf8;
$custom-light: #c9adfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bf8",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 248
  },
  "hsl": {
    "h": 259.817,
    "s": 88.618,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71498,
    "c": 0.15736,
    "h": 297.5
  },
  "luminance": 0.34357
}

Semantic roles & 50–950 ramp

primary
#AF8BF8
secondary
#EBF5D6
accent
#E5009A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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