#B17AFE#B17AFE

#B17AFE is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.2% C 0.191 H 300.8°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#B17AFE
RGBrgb(177, 122, 254)
HSLhsl(265, 99%, 74%)
HSVhsv(265, 52%, 100%)
CMYKcmyk(30.3%, 52%, 0%, 0.4%)
CIE-LABlab(62.02, 47.49, -58.17)
CIE-LCHlch(62.02, 75.09, 309.23°)
OKLaboklab(69.23% 0.0976 -0.164)
OKLCHoklch(69.23% 0.191 300.8)
XYZxyz(42.9762, 30.4217, 97.3546)
Luminance0.3042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17AFE #C7FE7A
analogous
#7A85FE #B17AFE #F37AFE
triadic
#B17AFE #FEB17A #7AFEB1
tetradic
#B17AFE #FE7A85 #C7FE7A #7AFEF3
square
#B17AFE #FE7A85 #C7FE7A #7AFEF3
split-complementary
#B17AFE #FEF37A #85FE7A
monochromatic
#6A02FC #8D3DFE #B17AFE #D5B7FE #EDE1FF

Accessibility & contrast

On white

2.96
#B17AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#B17AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17AFE
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17AFE#FFFFFF#000000##000000
##B17AFE1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#5A95FB
Tritanopia (blue-blind)
#A293B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b17afe;
/* rgb */ color: rgb(177, 122, 254);
/* oklch */ color: oklch(69.2% 0.191 300.8);
Tailwind
colors: {
  custom: {
    50: '#cca2ff',
    500: '#b17afe',
    950: '#000000',
  },
}
SCSS
$custom: #b17afe;
$custom-light: #cca2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b17afe",
  "rgb": {
    "r": 177,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 265,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69232,
    "c": 0.19091,
    "h": 300.8
  },
  "luminance": 0.30422
}

Semantic roles & 50–950 ramp

primary
#B17AFE
secondary
#E8F7D4
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B17AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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