#BA8EEF#BA8EEF

#BA8EEF is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.6% C 0.143 H 303.9°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#BA8EEF
RGBrgb(186, 142, 239)
HSLhsl(267, 75%, 75%)
HSVhsv(267, 41%, 94%)
CMYKcmyk(22.2%, 40.6%, 0%, 6.3%)
CIE-LABlab(66.53, 35.39, -42.72)
CIE-LCHlch(66.53, 55.47, 309.64°)
OKLaboklab(72.57% 0.08 -0.1189)
OKLCHoklch(72.57% 0.143 303.9)
XYZxyz(45.4994, 36.0172, 86.1996)
Luminance0.3602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EEF #C3EF8E
analogous
#8E93EF #BA8EEF #EA8EEF
triadic
#BA8EEF #EFBA8E #8EEFBA
tetradic
#BA8EEF #EF8E93 #C3EF8E #8EEFEA
square
#BA8EEF #EF8E93 #C3EF8E #8EEFEA
split-complementary
#BA8EEF #EFEA8E #93EF8E
monochromatic
#7923E0 #9958E7 #BA8EEF #DBC4F7 #EFE4FB

Accessibility & contrast

On white

2.56
#BA8EEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#BA8EEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EEF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EEF#FFFFFF#000000##000000
##BA8EEF1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A1F3
Deuteranopia (green-blind)
#80A2EC
Tritanopia (blue-blind)
#B19EB3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8eef;
/* rgb */ color: rgb(186, 142, 239);
/* oklch */ color: oklch(72.6% 0.143 303.9);
Tailwind
colors: {
  custom: {
    50: '#d0aff4',
    500: '#ba8eef',
    950: '#000000',
  },
}
SCSS
$custom: #ba8eef;
$custom-light: #d0aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8eef",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 239
  },
  "hsl": {
    "h": 267.216,
    "s": 75.194,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72573,
    "c": 0.14333,
    "h": 303.9
  },
  "luminance": 0.36017
}

Semantic roles & 50–950 ramp

primary
#BA8EEF
secondary
#E7F3D8
accent
#D70E7C
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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