#BA8CF8#BA8CF8

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

Color values

HEX#BA8CF8
RGBrgb(186, 140, 248)
HSLhsl(266, 89%, 76%)
HSVhsv(266, 44%, 97%)
CMYKcmyk(25%, 43.5%, 0%, 2.7%)
CIE-LABlab(66.50, 38.57, -47.71)
CIE-LCHlch(66.50, 61.35, 308.95°)
OKLaboklab(72.68% 0.0843 -0.1334)
OKLCHoklch(72.68% 0.158 302.3)
XYZxyz(46.5673, 35.9726, 93.2788)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CF8 #CAF88C
analogous
#8C94F8 #BA8CF8 #F08CF8
triadic
#BA8CF8 #F8BA8C #8CF8BA
tetradic
#BA8CF8 #F88C94 #CAF88C #8CF8F0
square
#BA8CF8 #F88C94 #CAF88C #8CF8F0
split-complementary
#BA8CF8 #F8F08C #94F88C
monochromatic
#7519F1 #9752F4 #BA8CF8 #DDC6FC #EEE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA8CF8#FFFFFF#000000##000000
##BA8CF81.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)
#6FA1FC
Deuteranopia (green-blind)
#79A1F5
Tritanopia (blue-blind)
#AF9EB6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8cf8;
/* rgb */ color: rgb(186, 140, 248);
/* oklch */ color: oklch(72.7% 0.158 302.3);
Tailwind
colors: {
  custom: {
    50: '#d1aefb',
    500: '#ba8cf8',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cf8;
$custom-light: #d1aefb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cf8",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 248
  },
  "hsl": {
    "h": 265.556,
    "s": 88.525,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72683,
    "c": 0.15776,
    "h": 302.3
  },
  "luminance": 0.35973
}

Semantic roles & 50–950 ramp

primary
#BA8CF8
secondary
#E8F5D6
accent
#E50084
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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