#BA81F9#BA81F9

#BA81F9 is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.9% C 0.176 H 304.2°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#BA81F9
RGBrgb(186, 129, 249)
HSLhsl(269, 91%, 74%)
HSVhsv(269, 48%, 98%)
CMYKcmyk(25.3%, 48.2%, 0%, 2.4%)
CIE-LABlab(64.14, 44.81, -51.98)
CIE-LCHlch(64.14, 68.63, 310.76°)
OKLaboklab(70.94% 0.0991 -0.1458)
OKLCHoklch(70.94% 0.176 304.2)
XYZxyz(45.1952, 32.9793, 93.5888)
Luminance0.3298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81F9 #C0F981
analogous
#8184F9 #BA81F9 #F681F9
triadic
#BA81F9 #F9BA81 #81F9BA
tetradic
#BA81F9 #F98184 #C0F981 #81F9F6
square
#BA81F9 #F98184 #C0F981 #81F9F6
split-complementary
#BA81F9 #F9F681 #84F981
monochromatic
#7A0CF3 #9A47F6 #BA81F9 #DABBFC #EFE2FE

Accessibility & contrast

On white

2.76
#BA81F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#BA81F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81F9
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81F9#FFFFFF#000000##000000
##BA81F91.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFD
Deuteranopia (green-blind)
#6D9BF6
Tritanopia (blue-blind)
#AF96B1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba81f9;
/* rgb */ color: rgb(186, 129, 249);
/* oklch */ color: oklch(70.9% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#d1a7fc',
    500: '#ba81f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba81f9;
$custom-light: #d1a7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81f9",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 249
  },
  "hsl": {
    "h": 268.5,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70937,
    "c": 0.17625,
    "h": 304.2
  },
  "luminance": 0.32979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA81F9

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

Preview Lab → · Contrast checker → · Palette generator →

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