#BA7AFA#BA7AFA

#BA7AFA is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.9% C 0.188 H 305.1°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#BA7AFA
RGBrgb(186, 122, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(25.6%, 51.2%, 0%, 2%)
CIE-LABlab(62.73, 48.79, -54.78)
CIE-LCHlch(62.73, 73.36, 311.69°)
OKLaboklab(69.9% 0.1083 -0.1539)
OKLCHoklch(69.9% 0.188 305.1)
XYZxyz(44.4609, 31.2606, 94.1156)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AFA #BAFA7A
analogous
#7A7AFA #BA7AFA #FA7AFA
triadic
#BA7AFA #FABA7A #7AFABA
tetradic
#BA7AFA #FA7A7A #BAFA7A #7AFAFA
square
#BA7AFA #FA7A7A #BAFA7A #7AFAFA
split-complementary
#BA7AFA #FAFA7A #7AFA7A
monochromatic
#7D09F1 #9B3FF8 #BA7AFA #D9B5FC #F0E2FE

Accessibility & contrast

On white

2.90
#BA7AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#BA7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AFA
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AFA#FFFFFF#000000##000000
##BA7AFA1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5296FE
Deuteranopia (green-blind)
#6598F7
Tritanopia (blue-blind)
#AF91AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7afa;
/* rgb */ color: rgb(186, 122, 250);
/* oklch */ color: oklch(69.9% 0.188 305.1);
Tailwind
colors: {
  custom: {
    50: '#d2a2fc',
    500: '#ba7afa',
    950: '#000000',
  },
}
SCSS
$custom: #ba7afa;
$custom-light: #d2a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7afa",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 270,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69901,
    "c": 0.18819,
    "h": 305.1
  },
  "luminance": 0.3126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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