#BA7BFA#BA7BFA

#BA7BFA is a light, vivid violet. Relative luminance 0.315; OKLCH L 70.1% C 0.187 H 305.0°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#BA7BFA
RGBrgb(186, 123, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(25.6%, 50.8%, 0%, 2%)
CIE-LABlab(62.93, 48.26, -54.45)
CIE-LCHlch(62.93, 72.76, 311.55°)
OKLaboklab(70.05% 0.107 -0.1529)
OKLCHoklch(70.05% 0.187 305)
XYZxyz(44.5843, 31.5074, 94.1567)
Luminance0.3151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BFA #BBFA7B
analogous
#7B7BFA #BA7BFA #FA7BFA
triadic
#BA7BFA #FABA7B #7BFABA
tetradic
#BA7BFA #FA7B7B #BBFA7B #7BFAFA
square
#BA7BFA #FA7B7B #BBFA7B #7BFAFA
split-complementary
#BA7BFA #FAFA7B #7BFA7B
monochromatic
#7C09F1 #9B40F8 #BA7BFA #D9B6FC #F0E2FE

Accessibility & contrast

On white

2.88
#BA7BFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#BA7BFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BFA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BFA#FFFFFF#000000##000000
##BA7BFA1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5396FE
Deuteranopia (green-blind)
#6698F7
Tritanopia (blue-blind)
#AF92AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bfa;
/* rgb */ color: rgb(186, 123, 250);
/* oklch */ color: oklch(70.1% 0.187 305.0);
Tailwind
colors: {
  custom: {
    50: '#d2a3fc',
    500: '#ba7bfa',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bfa;
$custom-light: #d2a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bfa",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 250
  },
  "hsl": {
    "h": 269.764,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70054,
    "c": 0.18667,
    "h": 305
  },
  "luminance": 0.31507
}

Semantic roles & 50–950 ramp

primary
#BA7BFA
secondary
#E6F6D5
accent
#E60074
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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