#BA80E8#BA80E8

#BA80E8 is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.9% C 0.158 H 308.6°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#BA80E8
RGBrgb(186, 128, 232)
HSLhsl(273, 69%, 71%)
HSVhsv(273, 45%, 91%)
CMYKcmyk(19.8%, 44.8%, 0%, 9%)
CIE-LABlab(63.10, 41.50, -44.25)
CIE-LCHlch(63.10, 60.67, 313.16°)
OKLaboklab(69.88% 0.0983 -0.1233)
OKLCHoklch(69.88% 0.158 308.6)
XYZxyz(42.5316, 31.7042, 80.2072)
Luminance0.3170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA80E8 #AEE880
analogous
#8680E8 #BA80E8 #E880E2
triadic
#BA80E8 #E8BA80 #80E8BA
tetradic
#BA80E8 #E88680 #AEE880 #80E2E8
square
#BA80E8 #E88680 #AEE880 #80E2E8
split-complementary
#BA80E8 #E2E880 #80E886
monochromatic
#8024C9 #9E4CDF #BA80E8 #D6B4F1 #F1E5FA

Accessibility & contrast

On white

2.86
#BA80E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#BA80E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA80E8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA80E8#FFFFFF#000000##000000
##BA80E81.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6796EC
Deuteranopia (green-blind)
#769AE5
Tritanopia (blue-blind)
#B491A9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba80e8;
/* rgb */ color: rgb(186, 128, 232);
/* oklch */ color: oklch(69.9% 0.158 308.6);
Tailwind
colors: {
  custom: {
    50: '#d0a6f0',
    500: '#ba80e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba80e8;
$custom-light: #d0a6f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba80e8",
  "rgb": {
    "r": 186,
    "g": 128,
    "b": 232
  },
  "hsl": {
    "h": 273.462,
    "s": 69.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69884,
    "c": 0.15765,
    "h": 308.6
  },
  "luminance": 0.31704
}

Semantic roles & 50–950 ramp

primary
#BA80E8
secondary
#E0F0D4
accent
#D11468
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA80E8

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

Preview Lab → · Contrast checker → · Palette generator →

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