#BA99EB#BA99EB

#BA99EB is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.3% C 0.120 H 302.1°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#BA99EB
RGBrgb(186, 153, 235)
HSLhsl(264, 67%, 76%)
HSVhsv(264, 35%, 92%)
CMYKcmyk(20.9%, 34.9%, 0%, 7.8%)
CIE-LABlab(68.91, 28.36, -36.81)
CIE-LCHlch(68.91, 46.47, 307.62°)
OKLaboklab(74.32% 0.0638 -0.1019)
OKLCHoklch(74.32% 0.12 302.1)
XYZxyz(46.6331, 39.2197, 83.6946)
Luminance0.3922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99EB #CAEB99
analogous
#99A1EB #BA99EB #E399EB
triadic
#BA99EB #EBBA99 #99EBBA
tetradic
#BA99EB #EB99A1 #CAEB99 #99EBE3
square
#BA99EB #EB99A1 #CAEB99 #99EBE3
split-complementary
#BA99EB #EBE399 #A1EB99
monochromatic
#7533D7 #9766E1 #BA99EB #DDCCF5 #EEE5FA

Accessibility & contrast

On white

2.37
#BA99EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#BA99EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99EB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99EB#FFFFFF#000000##000000
##BA99EB1.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A8EE
Deuteranopia (green-blind)
#8DA8E9
Tritanopia (blue-blind)
#B2A6B7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba99eb;
/* rgb */ color: rgb(186, 153, 235);
/* oklch */ color: oklch(74.3% 0.120 302.1);
Tailwind
colors: {
  custom: {
    50: '#d0b7f1',
    500: '#ba99eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba99eb;
$custom-light: #d0b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99eb",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 235
  },
  "hsl": {
    "h": 264.146,
    "s": 67.213,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74319,
    "c": 0.12026,
    "h": 302.1
  },
  "luminance": 0.3922
}

Semantic roles & 50–950 ramp

primary
#BA99EB
secondary
#E8F1DA
accent
#CF1685
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA99EB

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

Preview Lab → · Contrast checker → · Palette generator →

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