#BA99EF#BA99EF

#BA99EF is a light, vivid violet. Relative luminance 0.395; OKLCH L 74.5% C 0.125 H 301.1°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#BA99EF
RGBrgb(186, 153, 239)
HSLhsl(263, 73%, 77%)
HSVhsv(263, 36%, 94%)
CMYKcmyk(22.2%, 36%, 0%, 6.3%)
CIE-LABlab(69.08, 29.28, -38.74)
CIE-LCHlch(69.08, 48.56, 307.08°)
OKLaboklab(74.5% 0.0647 -0.1075)
OKLCHoklch(74.5% 0.125 301.1)
XYZxyz(47.2175, 39.4535, 86.7723)
Luminance0.3945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99EF #CEEF99
analogous
#99A3EF #BA99EF #E599EF
triadic
#BA99EF #EFBA99 #99EFBA
tetradic
#BA99EF #EF99A3 #CEEF99 #99EFE5
square
#BA99EF #EF99A3 #CEEF99 #99EFE5
split-complementary
#BA99EF #EFE599 #A3EF99
monochromatic
#722FDE #9664E7 #BA99EF #DECEF7 #EDE5FB

Accessibility & contrast

On white

2.36
#BA99EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#BA99EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99EF
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99EF#FFFFFF#000000##000000
##BA99EF1.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A8F2
Deuteranopia (green-blind)
#8BA8ED
Tritanopia (blue-blind)
#B1A7B9
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba99ef;
/* rgb */ color: rgb(186, 153, 239);
/* oklch */ color: oklch(74.5% 0.125 301.1);
Tailwind
colors: {
  custom: {
    50: '#d0b7f4',
    500: '#ba99ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba99ef;
$custom-light: #d0b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99ef",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 239
  },
  "hsl": {
    "h": 263.023,
    "s": 72.881,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74503,
    "c": 0.12545,
    "h": 301.1
  },
  "luminance": 0.39454
}

Semantic roles & 50–950 ramp

primary
#BA99EF
secondary
#E9F3D8
accent
#D5118A
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA99EF

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

Preview Lab → · Contrast checker → · Palette generator →

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