#BA80EF#BA80EF

#BA80EF is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.2% C 0.166 H 306.7°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#BA80EF
RGBrgb(186, 128, 239)
HSLhsl(271, 78%, 72%)
HSVhsv(271, 46%, 94%)
CMYKcmyk(22.2%, 46.4%, 0%, 6.3%)
CIE-LABlab(63.43, 43.07, -47.60)
CIE-LCHlch(63.43, 64.19, 312.14°)
OKLaboklab(70.25% 0.0992 -0.133)
OKLCHoklch(70.25% 0.166 306.7)
XYZxyz(43.5457, 32.1098, 85.5484)
Luminance0.3211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA80EF #B5EF80
analogous
#8380EF #BA80EF #EF80ED
triadic
#BA80EF #EFBA80 #80EFBA
tetradic
#BA80EF #EF8380 #B5EF80 #80EDEF
square
#BA80EF #EF8380 #B5EF80 #80EDEF
split-complementary
#BA80EF #EDEF80 #80EF83
monochromatic
#7F1BD9 #9C4AE8 #BA80EF #D8B6F6 #F0E4FC

Accessibility & contrast

On white

2.83
#BA80EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#BA80EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA80EF
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA80EF#FFFFFF#000000##000000
##BA80EF1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6397F3
Deuteranopia (green-blind)
#729AEC
Tritanopia (blue-blind)
#B293AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba80ef;
/* rgb */ color: rgb(186, 128, 239);
/* oklch */ color: oklch(70.2% 0.166 306.7);
Tailwind
colors: {
  custom: {
    50: '#d1a6f5',
    500: '#ba80ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba80ef;
$custom-light: #d1a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba80ef",
  "rgb": {
    "r": 186,
    "g": 128,
    "b": 239
  },
  "hsl": {
    "h": 271.351,
    "s": 77.622,
    "l": 71.961
  },
  "oklch": {
    "l": 0.70245,
    "c": 0.16593,
    "h": 306.7
  },
  "luminance": 0.32109
}

Semantic roles & 50–950 ramp

primary
#BA80EF
secondary
#E5F3D7
accent
#DA0C6E
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA80EF

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

Preview Lab → · Contrast checker → · Palette generator →

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