#BA80DC#BA80DC

#BA80DC is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.3% C 0.144 H 312.1°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#BA80DC
RGBrgb(186, 128, 220)
HSLhsl(278, 57%, 68%)
HSVhsv(278, 42%, 86%)
CMYKcmyk(15.5%, 41.8%, 0%, 13.7%)
CIE-LABlab(62.55, 38.88, -38.44)
CIE-LCHlch(62.55, 54.67, 315.32°)
OKLaboklab(69.29% 0.0963 -0.1065)
OKLCHoklch(69.29% 0.144 312.1)
XYZxyz(40.8849, 31.0455, 71.5349)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA80DC #A2DC80
analogous
#8C80DC #BA80DC #DC80D0
triadic
#BA80DC #DCBA80 #80DCBA
tetradic
#BA80DC #DC8C80 #A2DC80 #80D0DC
square
#BA80DC #DC8C80 #A2DC80 #80D0DC
split-complementary
#BA80DC #D0DC80 #80DC8C
monochromatic
#8231B1 #A050CF #BA80DC #D4B0E9 #EEE0F6

Accessibility & contrast

On white

2.91
#BA80DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#BA80DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA80DC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA80DC#FFFFFF#000000##000000
##BA80DC1.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E94DF
Deuteranopia (green-blind)
#7C99D9
Tritanopia (blue-blind)
#B78DA4
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba80dc;
/* rgb */ color: rgb(186, 128, 220);
/* oklch */ color: oklch(69.3% 0.144 312.1);
Tailwind
colors: {
  custom: {
    50: '#d0a6e7',
    500: '#ba80dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba80dc;
$custom-light: #d0a6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba80dc",
  "rgb": {
    "r": 186,
    "g": 128,
    "b": 220
  },
  "hsl": {
    "h": 277.826,
    "s": 56.79,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6929,
    "c": 0.14355,
    "h": 312.1
  },
  "luminance": 0.31045
}

Semantic roles & 50–950 ramp

primary
#BA80DC
secondary
#D8EACE
accent
#C4215D
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA80DC

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

Preview Lab → · Contrast checker → · Palette generator →

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