#BA9FF9#BA9FF9

#BA9FF9 is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.0% C 0.129 H 297.0°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#BA9FF9
RGBrgb(186, 159, 249)
HSLhsl(258, 88%, 80%)
HSVhsv(258, 36%, 98%)
CMYKcmyk(25.3%, 36.1%, 0%, 2.4%)
CIE-LABlab(70.92, 28.27, -41.31)
CIE-LCHlch(70.92, 50.06, 304.38°)
OKLaboklab(76.05% 0.0586 -0.1149)
OKLCHoklch(76.05% 0.129 297)
XYZxyz(49.7427, 42.0745, 95.1047)
Luminance0.4208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9FF9 #DEF99F
analogous
#9FB1F9 #BA9FF9 #E79FF9
triadic
#BA9FF9 #F9BA9F #9FF9BA
tetradic
#BA9FF9 #F99FB1 #DEF99F #9FF9E7
square
#BA9FF9 #F99FB1 #DEF99F #9FF9E7
split-complementary
#BA9FF9 #F9E79F #B1F99F
monochromatic
#672CF2 #9165F5 #BA9FF9 #E3D9FD #EAE2FD

Accessibility & contrast

On white

2.23
#BA9FF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#BA9FF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9FF9
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9FF9#FFFFFF#000000##000000
##BA9FF91.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AEFD
Deuteranopia (green-blind)
#8CADF7
Tritanopia (blue-blind)
#ADAEC0
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ba9ff9;
/* rgb */ color: rgb(186, 159, 249);
/* oklch */ color: oklch(76.0% 0.129 297.0);
Tailwind
colors: {
  custom: {
    50: '#d0bbfb',
    500: '#ba9ff9',
    950: '#000000',
  },
}
SCSS
$custom: #ba9ff9;
$custom-light: #d0bbfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9ff9",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 249
  },
  "hsl": {
    "h": 258,
    "s": 88.235,
    "l": 80
  },
  "oklch": {
    "l": 0.76047,
    "c": 0.12899,
    "h": 297
  },
  "luminance": 0.42075
}

Semantic roles & 50–950 ramp

primary
#BA9FF9
secondary
#ECF5D6
accent
#E501A0
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141217
muted
#828185

Preview Lab

Preview with #BA9FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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