#BA9BFB#BA9BFB

#BA9BFB is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.4% C 0.138 H 297.9°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#BA9BFB
RGBrgb(186, 155, 251)
HSLhsl(259, 92%, 80%)
HSVhsv(259, 38%, 98%)
CMYKcmyk(25.9%, 38.2%, 0%, 1.6%)
CIE-LABlab(70.07, 30.97, -43.74)
CIE-LCHlch(70.07, 53.59, 305.30°)
OKLaboklab(75.43% 0.0645 -0.1219)
OKLCHoklch(75.43% 0.138 297.9)
XYZxyz(49.3796, 40.8464, 96.5307)
Luminance0.4085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9BFB #DCFB9B
analogous
#9BACFB #BA9BFB #EA9BFB
triadic
#BA9BFB #FBBA9B #9BFBBA
tetradic
#BA9BFB #FB9BAC #DCFB9B #9BFBEA
square
#BA9BFB #FB9BAC #DCFB9B #9BFBEA
split-complementary
#BA9BFB #FBEA9B #ACFB9B
monochromatic
#6925F6 #9160F9 #BA9BFB #E3D6FD #EBE2FE

Accessibility & contrast

On white

2.29
#BA9BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#BA9BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9BFB
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9BFB#FFFFFF#000000##000000
##BA9BFB1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFF
Deuteranopia (green-blind)
#87AAF8
Tritanopia (blue-blind)
#ADABBF
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ba9bfb;
/* rgb */ color: rgb(186, 155, 251);
/* oklch */ color: oklch(75.4% 0.138 297.9);
Tailwind
colors: {
  custom: {
    50: '#d0b8fd',
    500: '#ba9bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba9bfb;
$custom-light: #d0b8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9bfb",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 251
  },
  "hsl": {
    "h": 259.375,
    "s": 92.308,
    "l": 79.608
  },
  "oklch": {
    "l": 0.75426,
    "c": 0.13789,
    "h": 297.9
  },
  "luminance": 0.40847
}

Semantic roles & 50–950 ramp

primary
#BA9BFB
secondary
#EBF6D5
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #BA9BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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