#BA7BF4#BA7BF4

#BA7BF4 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.7% C 0.180 H 306.3°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF4
RGBrgb(186, 123, 244)
HSLhsl(271, 85%, 72%)
HSVhsv(271, 50%, 96%)
CMYKcmyk(23.8%, 49.6%, 0%, 4.3%)
CIE-LABlab(62.62, 46.89, -51.64)
CIE-LCHlch(62.62, 69.75, 312.24°)
OKLaboklab(69.72% 0.1065 -0.1447)
OKLCHoklch(69.72% 0.18 306.3)
XYZxyz(43.6584, 31.1370, 89.2805)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF4 #B5F47B
analogous
#7E7BF4 #BA7BF4 #F47BF1
triadic
#BA7BF4 #F4BA7B #7BF4BA
tetradic
#BA7BF4 #F47E7B #B5F47B #7BF1F4
square
#BA7BF4 #F47E7B #B5F47B #7BF1F4
split-complementary
#BA7BF4 #F1F47B #7BF47E
monochromatic
#7F13E2 #9C43EF #BA7BF4 #D8B3F9 #F0E3FD

Accessibility & contrast

On white

2.91
#BA7BF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#BA7BF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF4#FFFFFF#000000##000000
##BA7BF41.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5895F8
Deuteranopia (green-blind)
#6A98F1
Tritanopia (blue-blind)
#B190AC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7bf4;
/* rgb */ color: rgb(186, 123, 244);
/* oklch */ color: oklch(69.7% 0.180 306.3);
Tailwind
colors: {
  custom: {
    50: '#d1a3f8',
    500: '#ba7bf4',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf4;
$custom-light: #d1a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf4",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 244
  },
  "hsl": {
    "h": 271.24,
    "s": 84.615,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69723,
    "c": 0.17969,
    "h": 306.3
  },
  "luminance": 0.31137
}

Semantic roles & 50–950 ramp

primary
#BA7BF4
secondary
#E5F5D6
accent
#E1046E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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