#BA8EEE#BA8EEE

#BA8EEE is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.5% C 0.142 H 304.2°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#BA8EEE
RGBrgb(186, 142, 238)
HSLhsl(268, 74%, 75%)
HSVhsv(268, 40%, 93%)
CMYKcmyk(21.8%, 40.3%, 0%, 6.7%)
CIE-LABlab(66.49, 35.16, -42.24)
CIE-LCHlch(66.49, 54.96, 309.77°)
OKLaboklab(72.52% 0.0799 -0.1175)
OKLCHoklch(72.52% 0.142 304.2)
XYZxyz(45.3521, 35.9583, 85.4238)
Luminance0.3596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EEE #C2EE8E
analogous
#8E92EE #BA8EEE #EA8EEE
triadic
#BA8EEE #EEBA8E #8EEEBA
tetradic
#BA8EEE #EE8E92 #C2EE8E #8EEEEA
square
#BA8EEE #EE8E92 #C2EE8E #8EEEEA
split-complementary
#BA8EEE #EEEA8E #92EE8E
monochromatic
#7924DE #9A59E6 #BA8EEE #DAC3F6 #EFE4FB

Accessibility & contrast

On white

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

On black

8.19
#BA8EEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EEE
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EEE#FFFFFF#000000##000000
##BA8EEE1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A0F2
Deuteranopia (green-blind)
#81A2EB
Tritanopia (blue-blind)
#B29DB3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8eee;
/* rgb */ color: rgb(186, 142, 238);
/* oklch */ color: oklch(72.5% 0.142 304.2);
Tailwind
colors: {
  custom: {
    50: '#d0aff4',
    500: '#ba8eee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8eee;
$custom-light: #d0aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8eee",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 238
  },
  "hsl": {
    "h": 267.5,
    "s": 73.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72524,
    "c": 0.14208,
    "h": 304.2
  },
  "luminance": 0.35958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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