#BA7CFA#BA7CFA

#BA7CFA is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.2% C 0.185 H 304.8°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#BA7CFA
RGBrgb(186, 124, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 50%, 98%)
CMYKcmyk(25.6%, 50.4%, 0%, 2%)
CIE-LABlab(63.14, 47.73, -54.12)
CIE-LCHlch(63.14, 72.16, 311.41°)
OKLaboklab(70.21% 0.1057 -0.152)
OKLCHoklch(70.21% 0.185 304.8)
XYZxyz(44.7090, 31.7568, 94.1983)
Luminance0.3176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CFA #BCFA7C
analogous
#7C7DFA #BA7CFA #F97CFA
triadic
#BA7CFA #FABA7C #7CFABA
tetradic
#BA7CFA #FA7C7D #BCFA7C #7CFAF9
square
#BA7CFA #FA7C7D #BCFA7C #7CFAF9
split-complementary
#BA7CFA #FAF97C #7DFA7C
monochromatic
#7C09F2 #9B41F8 #BA7CFA #D9B7FC #EFE2FE

Accessibility & contrast

On white

2.86
#BA7CFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#BA7CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CFA
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CFA#FFFFFF#000000##000000
##BA7CFA1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5597FE
Deuteranopia (green-blind)
#6799F7
Tritanopia (blue-blind)
#AF93B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7cfa;
/* rgb */ color: rgb(186, 124, 250);
/* oklch */ color: oklch(70.2% 0.185 304.8);
Tailwind
colors: {
  custom: {
    50: '#d1a3fc',
    500: '#ba7cfa',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cfa;
$custom-light: #d1a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cfa",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 250
  },
  "hsl": {
    "h": 269.524,
    "s": 92.647,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70208,
    "c": 0.18514,
    "h": 304.8
  },
  "luminance": 0.31757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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