#BA9BF8#BA9BF8

#BA9BF8 is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.3% C 0.134 H 298.5°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#BA9BF8
RGBrgb(186, 155, 248)
HSLhsl(260, 87%, 79%)
HSVhsv(260, 38%, 97%)
CMYKcmyk(25%, 37.5%, 0%, 2.7%)
CIE-LABlab(69.94, 30.26, -42.31)
CIE-LCHlch(69.94, 52.02, 305.57°)
OKLaboklab(75.28% 0.0639 -0.1178)
OKLCHoklch(75.28% 0.134 298.5)
XYZxyz(48.9104, 40.6588, 94.0599)
Luminance0.4066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9BF8 #D9F89B
analogous
#9BABF8 #BA9BF8 #E99BF8
triadic
#BA9BF8 #F8BA9B #9BF8BA
tetradic
#BA9BF8 #F89BAB #D9F89B #9BF8E9
square
#BA9BF8 #F89BAB #D9F89B #9BF8E9
split-complementary
#BA9BF8 #F8E99B #ABF89B
monochromatic
#6B29F0 #9362F4 #BA9BF8 #E1D4FC #EBE2FD

Accessibility & contrast

On white

2.30
#BA9BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#BA9BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9BF8
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9BF8#FFFFFF#000000##000000
##BA9BF81.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFC
Deuteranopia (green-blind)
#89AAF6
Tritanopia (blue-blind)
#AEABBE
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ba9bf8;
/* rgb */ color: rgb(186, 155, 248);
/* oklch */ color: oklch(75.3% 0.134 298.5);
Tailwind
colors: {
  custom: {
    50: '#d0b8fb',
    500: '#ba9bf8',
    950: '#000000',
  },
}
SCSS
$custom: #ba9bf8;
$custom-light: #d0b8fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9bf8",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 248
  },
  "hsl": {
    "h": 260,
    "s": 86.916,
    "l": 79.02
  },
  "oklch": {
    "l": 0.75282,
    "c": 0.13397,
    "h": 298.5
  },
  "luminance": 0.40659
}

Semantic roles & 50–950 ramp

primary
#BA9BF8
secondary
#EBF5D6
accent
#E30298
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #BA9BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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