#BA9DFD#BA9DFD

#BA9DFD is a light, vivid violet. Relative luminance 0.416; OKLCH L 75.9% C 0.137 H 296.9°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#BA9DFD
RGBrgb(186, 157, 253)
HSLhsl(258, 96%, 80%)
HSVhsv(258, 38%, 99%)
CMYKcmyk(26.5%, 37.9%, 0%, 0.8%)
CIE-LABlab(70.63, 30.33, -43.95)
CIE-LCHlch(70.63, 53.40, 304.61°)
OKLaboklab(75.88% 0.0622 -0.1225)
OKLCHoklch(75.88% 0.137 296.9)
XYZxyz(50.0321, 41.6444, 98.3117)
Luminance0.4164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9DFD #E0FD9D
analogous
#9DB0FD #BA9DFD #EA9DFD
triadic
#BA9DFD #FDBA9D #9DFDBA
tetradic
#BA9DFD #FD9DB0 #E0FD9D #9DFDEA
square
#BA9DFD #FD9DB0 #E0FD9D #9DFDEA
split-complementary
#BA9DFD #FDEA9D #B0FD9D
monochromatic
#6625FB #9061FC #BA9DFD #E4D9FE #EAE1FE

Accessibility & contrast

On white

2.25
#BA9DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#BA9DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9DFD
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9DFD#FFFFFF#000000##000000
##BA9DFD1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#88ACFB
Tritanopia (blue-blind)
#ACADC1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ba9dfd;
/* rgb */ color: rgb(186, 157, 253);
/* oklch */ color: oklch(75.9% 0.137 296.9);
Tailwind
colors: {
  custom: {
    50: '#d0bafe',
    500: '#ba9dfd',
    950: '#000000',
  },
}
SCSS
$custom: #ba9dfd;
$custom-light: #d0bafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9dfd",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 253
  },
  "hsl": {
    "h": 258.125,
    "s": 96,
    "l": 80.392
  },
  "oklch": {
    "l": 0.75878,
    "c": 0.13738,
    "h": 296.9
  },
  "luminance": 0.41645
}

Semantic roles & 50–950 ramp

primary
#BA9DFD
secondary
#ECF7D4
accent
#E600A0
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #BA9DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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