#BA81FE#BA81FE

#BA81FE is a light, vivid violet. Relative luminance 0.333; OKLCH L 71.2% C 0.182 H 303.1°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#BA81FE
RGBrgb(186, 129, 254)
HSLhsl(267, 98%, 75%)
HSVhsv(267, 49%, 100%)
CMYKcmyk(26.8%, 49.2%, 0%, 0.4%)
CIE-LABlab(64.40, 45.97, -54.32)
CIE-LCHlch(64.40, 71.16, 310.24°)
OKLaboklab(71.21% 0.0996 -0.1526)
OKLCHoklch(71.21% 0.182 303.1)
XYZxyz(45.9854, 33.2954, 97.7508)
Luminance0.3330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81FE #C5FE81
analogous
#8186FE #BA81FE #F881FE
triadic
#BA81FE #FEBA81 #81FEBA
tetradic
#BA81FE #FE8186 #C5FE81 #81FEF8
square
#BA81FE #FE8186 #C5FE81 #81FEF8
split-complementary
#BA81FE #FEF881 #86FE81
monochromatic
#7708FD #9944FE #BA81FE #DBBEFE #EEE1FF

Accessibility & contrast

On white

2.74
#BA81FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#BA81FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81FE
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81FE#FFFFFF#000000##000000
##BA81FE1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A9BFF
Deuteranopia (green-blind)
#6A9CFB
Tritanopia (blue-blind)
#AE98B4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba81fe;
/* rgb */ color: rgb(186, 129, 254);
/* oklch */ color: oklch(71.2% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#d1a7ff',
    500: '#ba81fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba81fe;
$custom-light: #d1a7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81fe",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 254
  },
  "hsl": {
    "h": 267.36,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7121,
    "c": 0.18221,
    "h": 303.1
  },
  "luminance": 0.33295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA81FE

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

Preview Lab → · Contrast checker → · Palette generator →

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