#B17AFD#B17AFD

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

Color values

HEX#B17AFD
RGBrgb(177, 122, 253)
HSLhsl(265, 97%, 74%)
HSVhsv(265, 52%, 99%)
CMYKcmyk(30%, 51.8%, 0%, 0.8%)
CIE-LABlab(61.96, 47.25, -57.70)
CIE-LCHlch(61.96, 74.58, 309.31°)
OKLaboklab(69.17% 0.0976 -0.1627)
OKLCHoklch(69.17% 0.19 301)
XYZxyz(42.8165, 30.3578, 96.5134)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17AFD #C6FD7A
analogous
#7A84FD #B17AFD #F37AFD
triadic
#B17AFD #FDB17A #7AFDB1
tetradic
#B17AFD #FD7A84 #C6FD7A #7AFDF3
square
#B17AFD #FD7A84 #C6FD7A #7AFDF3
split-complementary
#B17AFD #FDF37A #84FD7A
monochromatic
#6B04F9 #8E3EFC #B17AFD #D4B6FE #EDE1FF

Accessibility & contrast

On white

2.97
#B17AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#B17AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17AFD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17AFD#FFFFFF#000000##000000
##B17AFD1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B95FF
Deuteranopia (green-blind)
#5B95FA
Tritanopia (blue-blind)
#A293B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b17afd;
/* rgb */ color: rgb(177, 122, 253);
/* oklch */ color: oklch(69.2% 0.190 301.0);
Tailwind
colors: {
  custom: {
    50: '#cca2ff',
    500: '#b17afd',
    950: '#000000',
  },
}
SCSS
$custom: #b17afd;
$custom-light: #cca2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b17afd",
  "rgb": {
    "r": 177,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 265.191,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69174,
    "c": 0.18972,
    "h": 301
  },
  "luminance": 0.30358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B17AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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