#BA9FFB#BA9FFB

#BA9FFB is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.1% C 0.132 H 296.7°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#BA9FFB
RGBrgb(186, 159, 251)
HSLhsl(258, 92%, 80%)
HSVhsv(258, 37%, 98%)
CMYKcmyk(25.9%, 36.7%, 0%, 1.6%)
CIE-LABlab(71.01, 28.74, -42.27)
CIE-LCHlch(71.01, 51.11, 304.22°)
OKLaboklab(76.14% 0.0591 -0.1176)
OKLCHoklch(76.14% 0.132 296.7)
XYZxyz(50.0563, 42.1999, 96.7563)
Luminance0.4220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9FFB #E0FB9F
analogous
#9FB2FB #BA9FFB #E89FFB
triadic
#BA9FFB #FBBA9F #9FFBBA
tetradic
#BA9FFB #FB9FB2 #E0FB9F #9FFBE8
square
#BA9FFB #FB9FB2 #E0FB9F #9FFBE8
split-complementary
#BA9FFB #FBE89F #B2FB9F
monochromatic
#6629F6 #9064F9 #BA9FFB #E4DAFD #EAE2FE

Accessibility & contrast

On white

2.22
#BA9FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#BA9FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9FFB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9FFB#FFFFFF#000000##000000
##BA9FFB1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AEFF
Deuteranopia (green-blind)
#8BADF9
Tritanopia (blue-blind)
#ADAFC1
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ba9ffb;
/* rgb */ color: rgb(186, 159, 251);
/* oklch */ color: oklch(76.1% 0.132 296.7);
Tailwind
colors: {
  custom: {
    50: '#d0bbfd',
    500: '#ba9ffb',
    950: '#000000',
  },
}
SCSS
$custom: #ba9ffb;
$custom-light: #d0bbfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9ffb",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 251
  },
  "hsl": {
    "h": 257.609,
    "s": 92,
    "l": 80.392
  },
  "oklch": {
    "l": 0.76141,
    "c": 0.13163,
    "h": 296.7
  },
  "luminance": 0.422
}

Semantic roles & 50–950 ramp

primary
#BA9FFB
secondary
#ECF6D5
accent
#E600A2
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141217
muted
#828185

Preview Lab

Preview with #BA9FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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