#BA81FD#BA81FD

#BA81FD is a light, vivid violet. Relative luminance 0.332; OKLCH L 71.2% C 0.181 H 303.3°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#BA81FD
RGBrgb(186, 129, 253)
HSLhsl(268, 97%, 75%)
HSVhsv(268, 49%, 99%)
CMYKcmyk(26.5%, 49%, 0%, 0.8%)
CIE-LABlab(64.35, 45.74, -53.85)
CIE-LCHlch(64.35, 70.65, 310.34°)
OKLaboklab(71.16% 0.0995 -0.1512)
OKLCHoklch(71.16% 0.181 303.3)
XYZxyz(45.8257, 33.2315, 96.9096)
Luminance0.3323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81FD #C4FD81
analogous
#8186FD #BA81FD #F881FD
triadic
#BA81FD #FDBA81 #81FDBA
tetradic
#BA81FD #FD8186 #C4FD81 #81FDF8
square
#BA81FD #FD8186 #C4FD81 #81FDF8
split-complementary
#BA81FD #FDF881 #86FD81
monochromatic
#7809FB #9945FC #BA81FD #DBBDFE #EFE1FF

Accessibility & contrast

On white

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

On black

7.65
#BA81FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81FD
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81FD#FFFFFF#000000##000000
##BA81FD1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba81fd;
/* rgb */ color: rgb(186, 129, 253);
/* oklch */ color: oklch(71.2% 0.181 303.3);
Tailwind
colors: {
  custom: {
    50: '#d1a7fe',
    500: '#ba81fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba81fd;
$custom-light: #d1a7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81fd",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 253
  },
  "hsl": {
    "h": 267.581,
    "s": 96.875,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71155,
    "c": 0.18101,
    "h": 303.3
  },
  "luminance": 0.33231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA81FD

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

Preview Lab → · Contrast checker → · Palette generator →

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