#BA8EFA#BA8EFA

#BA8EFA is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.1% C 0.157 H 301.4°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#BA8EFA
RGBrgb(186, 142, 250)
HSLhsl(264, 92%, 77%)
HSVhsv(264, 43%, 98%)
CMYKcmyk(25.6%, 43.2%, 0%, 2%)
CIE-LABlab(67.04, 37.94, -47.95)
CIE-LCHlch(67.04, 61.14, 308.35°)
OKLaboklab(73.12% 0.0819 -0.1341)
OKLCHoklch(73.12% 0.157 301.4)
XYZxyz(47.1742, 36.6871, 95.0200)
Luminance0.3669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EFA #CEFA8E
analogous
#8E98FA #BA8EFA #F08EFA
triadic
#BA8EFA #FABA8E #8EFABA
tetradic
#BA8EFA #FA8E98 #CEFA8E #8EFAF0
square
#BA8EFA #FA8E98 #CEFA8E #8EFAF0
split-complementary
#BA8EFA #FAF08E #98FA8E
monochromatic
#7219F5 #9653F7 #BA8EFA #DEC9FD #EDE2FE

Accessibility & contrast

On white

2.52
#BA8EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#BA8EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EFA
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EFA#FFFFFF#000000##000000
##BA8EFA1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A2FE
Deuteranopia (green-blind)
#7AA3F7
Tritanopia (blue-blind)
#AEA1B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8efa;
/* rgb */ color: rgb(186, 142, 250);
/* oklch */ color: oklch(73.1% 0.157 301.4);
Tailwind
colors: {
  custom: {
    50: '#d1b0fc',
    500: '#ba8efa',
    950: '#000000',
  },
}
SCSS
$custom: #ba8efa;
$custom-light: #d1b0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8efa",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 264.444,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.73123,
    "c": 0.15709,
    "h": 301.4
  },
  "luminance": 0.36687
}

Semantic roles & 50–950 ramp

primary
#BA8EFA
secondary
#E9F6D5
accent
#E60088
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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