#BA95EB#BA95EB

#BA95EB is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.6% C 0.127 H 303.2°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#BA95EB
RGBrgb(186, 149, 235)
HSLhsl(266, 68%, 75%)
HSVhsv(266, 37%, 92%)
CMYKcmyk(20.9%, 36.6%, 0%, 7.8%)
CIE-LABlab(67.97, 30.59, -38.27)
CIE-LCHlch(67.97, 49.00, 308.63°)
OKLaboklab(73.6% 0.0695 -0.1061)
OKLCHoklch(73.6% 0.127 303.2)
XYZxyz(45.9894, 37.9322, 83.4800)
Luminance0.3793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA95EB #C6EB95
analogous
#959BEB #BA95EB #E595EB
triadic
#BA95EB #EBBA95 #95EBBA
tetradic
#BA95EB #EB959B #C6EB95 #95EBE5
square
#BA95EB #EB959B #C6EB95 #95EBE5
split-complementary
#BA95EB #EBE595 #9BEB95
monochromatic
#772ED8 #9862E1 #BA95EB #DCC8F5 #EEE5FA

Accessibility & contrast

On white

2.45
#BA95EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#BA95EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA95EB
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA95EB#FFFFFF#000000##000000
##BA95EB1.002.458.598.59
#FFFFFF2.451.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EE
Deuteranopia (green-blind)
#89A6E9
Tritanopia (blue-blind)
#B2A3B5
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba95eb;
/* rgb */ color: rgb(186, 149, 235);
/* oklch */ color: oklch(73.6% 0.127 303.2);
Tailwind
colors: {
  custom: {
    50: '#d0b4f1',
    500: '#ba95eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba95eb;
$custom-light: #d0b4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba95eb",
  "rgb": {
    "r": 186,
    "g": 149,
    "b": 235
  },
  "hsl": {
    "h": 265.814,
    "s": 68.254,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73604,
    "c": 0.12682,
    "h": 303.2
  },
  "luminance": 0.37932
}

Semantic roles & 50–950 ramp

primary
#BA95EB
secondary
#E7F2D9
accent
#D01580
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA95EB

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

Preview Lab → · Contrast checker → · Palette generator →

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