#BA99FF#BA99FF

#BA99FF is a light, vivid violet. Relative luminance 0.404; OKLCH L 75.3% C 0.146 H 297.7°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#BA99FF
RGBrgb(186, 153, 255)
HSLhsl(259, 100%, 80%)
HSVhsv(259, 40%, 100%)
CMYKcmyk(27.1%, 40%, 0%, 0%)
CIE-LABlab(69.78, 33.03, -46.36)
CIE-LCHlch(69.78, 56.92, 305.47°)
OKLaboklab(75.27% 0.068 -0.1295)
OKLCHoklch(75.27% 0.146 297.7)
XYZxyz(49.6867, 40.4411, 99.7766)
Luminance0.4044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99FF #DEFF99
analogous
#99ABFF #BA99FF #ED99FF
triadic
#BA99FF #FFBA99 #99FFBA
tetradic
#BA99FF #FF99AB #DEFF99 #99FFED
square
#BA99FF #FF99AB #DEFF99 #99FFED
split-complementary
#BA99FF #FFED99 #ABFF99
monochromatic
#671FFF #915CFF #BA99FF #E3D6FF #EAE0FF

Accessibility & contrast

On white

2.31
#BA99FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#BA99FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99FF
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99FF#FFFFFF#000000##000000
##BA99FF1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DABFF
Deuteranopia (green-blind)
#83A9FC
Tritanopia (blue-blind)
#ACABC0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ba99ff;
/* rgb */ color: rgb(186, 153, 255);
/* oklch */ color: oklch(75.3% 0.146 297.7);
Tailwind
colors: {
  custom: {
    50: '#d1b7ff',
    500: '#ba99ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba99ff;
$custom-light: #d1b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99ff",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 255
  },
  "hsl": {
    "h": 259.412,
    "s": 100,
    "l": 80
  },
  "oklch": {
    "l": 0.75268,
    "c": 0.14622,
    "h": 297.7
  },
  "luminance": 0.40442
}

Semantic roles & 50–950 ramp

primary
#BA99FF
secondary
#ECF7D4
accent
#E6009B
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA99FF

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

Preview Lab → · Contrast checker → · Palette generator →

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