#BA9AFA#BA9AFA

#BA9AFA is a light, vivid violet. Relative luminance 0.405; OKLCH L 75.2% C 0.138 H 298.4°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#BA9AFA
RGBrgb(186, 154, 250)
HSLhsl(260, 91%, 79%)
HSVhsv(260, 38%, 98%)
CMYKcmyk(25.6%, 38.4%, 0%, 2%)
CIE-LABlab(69.79, 31.29, -43.63)
CIE-LCHlch(69.79, 53.69, 305.64°)
OKLaboklab(75.2% 0.0657 -0.1216)
OKLCHoklch(75.2% 0.138 298.4)
XYZxyz(49.0566, 40.4521, 95.6475)
Luminance0.4045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9AFA #DAFA9A
analogous
#9AAAFA #BA9AFA #EA9AFA
triadic
#BA9AFA #FABA9A #9AFABA
tetradic
#BA9AFA #FA9AAA #DAFA9A #9AFAEA
square
#BA9AFA #FA9AAA #DAFA9A #9AFAEA
split-complementary
#BA9AFA #FAEA9A #AAFA9A
monochromatic
#6A25F4 #9260F7 #BA9AFA #E2D4FD #EBE2FE

Accessibility & contrast

On white

2.31
#BA9AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#BA9AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9AFA
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9AFA#FFFFFF#000000##000000
##BA9AFA1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFE
Deuteranopia (green-blind)
#87AAF7
Tritanopia (blue-blind)
#AEAABE
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ba9afa;
/* rgb */ color: rgb(186, 154, 250);
/* oklch */ color: oklch(75.2% 0.138 298.4);
Tailwind
colors: {
  custom: {
    50: '#d0b8fc',
    500: '#ba9afa',
    950: '#000000',
  },
}
SCSS
$custom: #ba9afa;
$custom-light: #d0b8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9afa",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 250
  },
  "hsl": {
    "h": 260,
    "s": 90.566,
    "l": 79.216
  },
  "oklch": {
    "l": 0.752,
    "c": 0.13816,
    "h": 298.4
  },
  "luminance": 0.40452
}

Semantic roles & 50–950 ramp

primary
#BA9AFA
secondary
#EBF6D5
accent
#E60099
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #BA9AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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