#BA9EFE#BA9EFE

#BA9EFE is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.1% C 0.137 H 296.4°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#BA9EFE
RGBrgb(186, 158, 254)
HSLhsl(258, 98%, 81%)
HSVhsv(258, 38%, 100%)
CMYKcmyk(26.8%, 37.8%, 0%, 0.4%)
CIE-LABlab(70.90, 30.01, -44.06)
CIE-LCHlch(70.90, 53.31, 304.26°)
OKLaboklab(76.11% 0.061 -0.1228)
OKLCHoklch(76.11% 0.137 296.4)
XYZxyz(50.3617, 42.0480, 99.2095)
Luminance0.4205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9EFE #E2FE9E
analogous
#9EB2FE #BA9EFE #EA9EFE
triadic
#BA9EFE #FEBA9E #9EFEBA
tetradic
#BA9EFE #FE9EB2 #E2FE9E #9EFEEA
square
#BA9EFE #FE9EB2 #E2FE9E #9EFEEA
split-complementary
#BA9EFE #FEEA9E #B2FE9E
monochromatic
#6425FD #8F61FD #BA9EFE #E5DBFF #E9E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9EFE#FFFFFF#000000##000000
##BA9EFE1.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)
#84AEFF
Deuteranopia (green-blind)
#89ACFC
Tritanopia (blue-blind)
#ACAFC2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ba9efe;
/* rgb */ color: rgb(186, 158, 254);
/* oklch */ color: oklch(76.1% 0.137 296.4);
Tailwind
colors: {
  custom: {
    50: '#d0bbff',
    500: '#ba9efe',
    950: '#000000',
  },
}
SCSS
$custom: #ba9efe;
$custom-light: #d0bbff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9efe",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 257.5,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.76105,
    "c": 0.13714,
    "h": 296.4
  },
  "luminance": 0.42049
}

Semantic roles & 50–950 ramp

primary
#BA9EFE
secondary
#EDF7D4
accent
#E600A3
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #BA9EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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