#BA99FB#BA99FB

#BA99FB is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.1% C 0.141 H 298.5°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#BA99FB
RGBrgb(186, 153, 251)
HSLhsl(260, 92%, 79%)
HSVhsv(260, 39%, 98%)
CMYKcmyk(25.9%, 39%, 0%, 1.6%)
CIE-LABlab(69.60, 32.08, -44.47)
CIE-LCHlch(69.60, 54.83, 305.81°)
OKLaboklab(75.07% 0.0672 -0.124)
OKLCHoklch(75.07% 0.141 298.5)
XYZxyz(49.0495, 40.1862, 96.4207)
Luminance0.4019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99FB #DAFB99
analogous
#99A9FB #BA99FB #EB99FB
triadic
#BA99FB #FBBA99 #99FBBA
tetradic
#BA99FB #FB99A9 #DAFB99 #99FBEB
square
#BA99FB #FB99A9 #DAFB99 #99FBEB
split-complementary
#BA99FB #FBEB99 #A9FB99
monochromatic
#6A23F6 #925EF9 #BA99FB #E2D4FD #EBE2FE

Accessibility & contrast

On white

2.32
#BA99FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#BA99FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99FB
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99FB#FFFFFF#000000##000000
##BA99FB1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FAAFF
Deuteranopia (green-blind)
#85A9F8
Tritanopia (blue-blind)
#ADAABE
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ba99fb;
/* rgb */ color: rgb(186, 153, 251);
/* oklch */ color: oklch(75.1% 0.141 298.5);
Tailwind
colors: {
  custom: {
    50: '#d0b7fd',
    500: '#ba99fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba99fb;
$custom-light: #d0b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99fb",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 251
  },
  "hsl": {
    "h": 260.204,
    "s": 92.453,
    "l": 79.216
  },
  "oklch": {
    "l": 0.75072,
    "c": 0.14103,
    "h": 298.5
  },
  "luminance": 0.40187
}

Semantic roles & 50–950 ramp

primary
#BA99FB
secondary
#EBF6D5
accent
#E60098
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA99FB

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

Preview Lab → · Contrast checker → · Palette generator →

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