#B17AFA#B17AFA

#B17AFA is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.0% C 0.186 H 301.5°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#B17AFA
RGBrgb(177, 122, 250)
HSLhsl(266, 93%, 73%)
HSVhsv(266, 51%, 98%)
CMYKcmyk(29.2%, 51.2%, 0%, 2%)
CIE-LABlab(61.80, 46.53, -56.31)
CIE-LCHlch(61.80, 73.05, 309.57°)
OKLaboklab(69% 0.0974 -0.1586)
OKLCHoklch(69% 0.186 301.5)
XYZxyz(42.3424, 30.1682, 94.0163)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17AFA #C3FA7A
analogous
#7A83FA #B17AFA #F17AFA
triadic
#B17AFA #FAB17A #7AFAB1
tetradic
#B17AFA #FA7A83 #C3FA7A #7AFAF1
square
#B17AFA #FA7A83 #C3FA7A #7AFAF1
split-complementary
#B17AFA #FAF17A #83FA7A
monochromatic
#6D09F1 #8E3FF8 #B17AFA #D4B5FC #EEE2FE

Accessibility & contrast

On white

2.99
#B17AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#B17AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17AFA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17AFA#FFFFFF#000000##000000
##B17AFA1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E94FE
Deuteranopia (green-blind)
#5E95F7
Tritanopia (blue-blind)
#A392AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b17afa;
/* rgb */ color: rgb(177, 122, 250);
/* oklch */ color: oklch(69.0% 0.186 301.5);
Tailwind
colors: {
  custom: {
    50: '#cba2fc',
    500: '#b17afa',
    950: '#000000',
  },
}
SCSS
$custom: #b17afa;
$custom-light: #cba2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b17afa",
  "rgb": {
    "r": 177,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 265.781,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69001,
    "c": 0.18614,
    "h": 301.5
  },
  "luminance": 0.30168
}

Semantic roles & 50–950 ramp

primary
#B17AFA
secondary
#E8F6D5
accent
#E60083
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B17AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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