#BA9FFE#BA9FFE

#BA9FFE is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.3% C 0.136 H 296.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#BA9FFE
RGBrgb(186, 159, 254)
HSLhsl(257, 98%, 81%)
HSVhsv(257, 37%, 100%)
CMYKcmyk(26.8%, 37.4%, 0%, 0.4%)
CIE-LABlab(71.14, 29.46, -43.69)
CIE-LCHlch(71.14, 52.69, 303.99°)
OKLaboklab(76.28% 0.0597 -0.1217)
OKLCHoklch(76.28% 0.136 296.1)
XYZxyz(50.5330, 42.3906, 99.2666)
Luminance0.4239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9FFE #E3FE9F
analogous
#9FB3FE #BA9FFE #EA9FFE
triadic
#BA9FFE #FEBA9F #9FFEBA
tetradic
#BA9FFE #FE9FB3 #E3FE9F #9FFEEA
square
#BA9FFE #FE9FB3 #E3FE9F #9FFEEA
split-complementary
#BA9FFE #FEEA9F #B3FE9F
monochromatic
#6326FD #8E62FD #BA9FFE #E6DCFF #E9E1FF

Accessibility & contrast

On white

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

On black

9.48
#BA9FFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9FFE
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9FFE#FFFFFF#000000##000000
##BA9FFE1.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AFFF
Deuteranopia (green-blind)
#8AADFC
Tritanopia (blue-blind)
#ACAFC3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ba9ffe;
/* rgb */ color: rgb(186, 159, 254);
/* oklch */ color: oklch(76.3% 0.136 296.1);
Tailwind
colors: {
  custom: {
    50: '#d0bbff',
    500: '#ba9ffe',
    950: '#000000',
  },
}
SCSS
$custom: #ba9ffe;
$custom-light: #d0bbff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9ffe",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 254
  },
  "hsl": {
    "h": 257.053,
    "s": 97.938,
    "l": 80.98
  },
  "oklch": {
    "l": 0.76284,
    "c": 0.13559,
    "h": 296.1
  },
  "luminance": 0.42391
}

Semantic roles & 50–950 ramp

primary
#BA9FFE
secondary
#EDF7D4
accent
#E600A4
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141218
muted
#828186

Preview Lab

Preview with #BA9FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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