#BA81FC#BA81FC

#BA81FC is a light, vivid violet. Relative luminance 0.332; OKLCH L 71.1% C 0.180 H 303.6°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#BA81FC
RGBrgb(186, 129, 252)
HSLhsl(268, 95%, 75%)
HSVhsv(268, 49%, 99%)
CMYKcmyk(26.2%, 48.8%, 0%, 1.2%)
CIE-LABlab(64.30, 45.51, -53.38)
CIE-LCHlch(64.30, 70.15, 310.45°)
OKLaboklab(71.1% 0.0994 -0.1498)
OKLCHoklch(71.1% 0.18 303.6)
XYZxyz(45.6668, 33.1680, 96.0728)
Luminance0.3317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81FC #C3FC81
analogous
#8186FC #BA81FC #F881FC
triadic
#BA81FC #FCBA81 #81FCBA
tetradic
#BA81FC #FC8186 #C3FC81 #81FCF8
square
#BA81FC #FC8186 #C3FC81 #81FCF8
split-complementary
#BA81FC #FCF881 #86FC81
monochromatic
#7909F9 #9945FB #BA81FC #DBBDFD #EFE1FE

Accessibility & contrast

On white

2.75
#BA81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#BA81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81FC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81FC#FFFFFF#000000##000000
##BA81FC1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9AFF
Deuteranopia (green-blind)
#6B9CF9
Tritanopia (blue-blind)
#AE97B3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba81fc;
/* rgb */ color: rgb(186, 129, 252);
/* oklch */ color: oklch(71.1% 0.180 303.6);
Tailwind
colors: {
  custom: {
    50: '#d1a7fe',
    500: '#ba81fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba81fc;
$custom-light: #d1a7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81fc",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 267.805,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.711,
    "c": 0.17981,
    "h": 303.6
  },
  "luminance": 0.33168
}

Semantic roles & 50–950 ramp

primary
#BA81FC
secondary
#E7F7D4
accent
#E6007B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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