#BA81F8#BA81F8

#BA81F8 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.9% C 0.175 H 304.4°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#BA81F8
RGBrgb(186, 129, 248)
HSLhsl(269, 89%, 74%)
HSVhsv(269, 48%, 97%)
CMYKcmyk(25%, 48%, 0%, 2.7%)
CIE-LABlab(64.09, 44.58, -51.51)
CIE-LCHlch(64.09, 68.12, 310.88°)
OKLaboklab(70.88% 0.099 -0.1444)
OKLCHoklch(70.88% 0.175 304.4)
XYZxyz(45.0396, 32.9171, 92.7696)
Luminance0.3292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81F8 #BFF881
analogous
#8184F8 #BA81F8 #F581F8
triadic
#BA81F8 #F8BA81 #81F8BA
tetradic
#BA81F8 #F88184 #BFF881 #81F8F5
square
#BA81F8 #F88184 #BFF881 #81F8F5
split-complementary
#BA81F8 #F8F581 #84F881
monochromatic
#7B0DF1 #9A47F5 #BA81F8 #DABBFB #EFE2FD

Accessibility & contrast

On white

2.77
#BA81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#BA81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81F8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81F8#FFFFFF#000000##000000
##BA81F81.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFC
Deuteranopia (green-blind)
#6E9BF5
Tritanopia (blue-blind)
#B096B1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba81f8;
/* rgb */ color: rgb(186, 129, 248);
/* oklch */ color: oklch(70.9% 0.175 304.4);
Tailwind
colors: {
  custom: {
    50: '#d1a7fb',
    500: '#ba81f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba81f8;
$custom-light: #d1a7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81f8",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 268.739,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70883,
    "c": 0.17505,
    "h": 304.4
  },
  "luminance": 0.32917
}

Semantic roles & 50–950 ramp

primary
#BA81F8
secondary
#E6F5D6
accent
#E60078
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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