#BA99FE#BA99FE

#BA99FE is a light, vivid violet. Relative luminance 0.404; OKLCH L 75.2% C 0.145 H 297.9°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#BA99FE
RGBrgb(186, 153, 254)
HSLhsl(260, 98%, 80%)
HSVhsv(260, 40%, 100%)
CMYKcmyk(26.8%, 39.8%, 0%, 0.4%)
CIE-LABlab(69.74, 32.79, -45.89)
CIE-LCHlch(69.74, 56.40, 305.55°)
OKLaboklab(75.22% 0.0678 -0.1281)
OKLCHoklch(75.22% 0.145 297.9)
XYZxyz(49.5261, 40.3769, 98.9310)
Luminance0.4038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99FE #DDFE99
analogous
#99ABFE #BA99FE #ED99FE
triadic
#BA99FE #FEBA99 #99FEBA
tetradic
#BA99FE #FE99AB #DDFE99 #99FEED
square
#BA99FE #FE99AB #DDFE99 #99FEED
split-complementary
#BA99FE #FEED99 #ABFE99
monochromatic
#6820FD #915CFD #BA99FE #E3D6FF #EBE1FF

Accessibility & contrast

On white

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

On black

9.08
#BA99FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99FE
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99FE#FFFFFF#000000##000000
##BA99FE1.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EABFF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#ACAABF
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ba99fe;
/* rgb */ color: rgb(186, 153, 254);
/* oklch */ color: oklch(75.2% 0.145 297.9);
Tailwind
colors: {
  custom: {
    50: '#d1b7ff',
    500: '#ba99fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba99fe;
$custom-light: #d1b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99fe",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 254
  },
  "hsl": {
    "h": 259.604,
    "s": 98.058,
    "l": 79.804
  },
  "oklch": {
    "l": 0.75219,
    "c": 0.14492,
    "h": 297.9
  },
  "luminance": 0.40377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA99FE

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

Preview Lab → · Contrast checker → · Palette generator →

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