#BA81DF#BA81DF

#BA81DF is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.6% C 0.145 H 311.0°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#BA81DF
RGBrgb(186, 129, 223)
HSLhsl(276, 59%, 69%)
HSVhsv(276, 42%, 87%)
CMYKcmyk(16.6%, 42.2%, 0%, 12.5%)
CIE-LABlab(62.90, 38.98, -39.56)
CIE-LCHlch(62.90, 55.54, 314.58°)
OKLaboklab(69.6% 0.0954 -0.1097)
OKLCHoklch(69.6% 0.145 311)
XYZxyz(41.4169, 31.4680, 73.6898)
Luminance0.3147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81DF #A6DF81
analogous
#8B81DF #BA81DF #DF81D5
triadic
#BA81DF #DFBA81 #81DFBA
tetradic
#BA81DF #DF8B81 #A6DF81 #81D5DF
square
#BA81DF #DF8B81 #A6DF81 #81D5DF
split-complementary
#BA81DF #D5DF81 #81DF8B
monochromatic
#812FB7 #9F50D3 #BA81DF #D5B2EB #EFE3F8

Accessibility & contrast

On white

2.88
#BA81DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#BA81DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81DF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81DF#FFFFFF#000000##000000
##BA81DF1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E95E2
Deuteranopia (green-blind)
#7C99DC
Tritanopia (blue-blind)
#B68FA5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba81df;
/* rgb */ color: rgb(186, 129, 223);
/* oklch */ color: oklch(69.6% 0.145 311.0);
Tailwind
colors: {
  custom: {
    50: '#d0a6e9',
    500: '#ba81df',
    950: '#000000',
  },
}
SCSS
$custom: #ba81df;
$custom-light: #d0a6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81df",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 223
  },
  "hsl": {
    "h": 276.383,
    "s": 59.494,
    "l": 69.02
  },
  "oklch": {
    "l": 0.69601,
    "c": 0.14538,
    "h": 311
  },
  "luminance": 0.31467
}

Semantic roles & 50–950 ramp

primary
#BA81DF
secondary
#DBECD0
accent
#C71E61
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA81DF

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

Preview Lab → · Contrast checker → · Palette generator →

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