#BA7BF2#BA7BF2

#BA7BF2 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.6% C 0.177 H 306.8°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF2
RGBrgb(186, 123, 242)
HSLhsl(272, 82%, 72%)
HSVhsv(272, 49%, 95%)
CMYKcmyk(23.1%, 49.2%, 0%, 5.1%)
CIE-LABlab(62.52, 46.44, -50.70)
CIE-LCHlch(62.52, 68.75, 312.49°)
OKLaboklab(69.61% 0.1063 -0.142)
OKLCHoklch(69.61% 0.177 306.8)
XYZxyz(43.3564, 31.0162, 87.6899)
Luminance0.3102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF2 #B3F27B
analogous
#7F7BF2 #BA7BF2 #F27BEE
triadic
#BA7BF2 #F2BA7B #7BF2BA
tetradic
#BA7BF2 #F27F7B #B3F27B #7BEEF2
square
#BA7BF2 #F27F7B #B3F27B #7BEEF2
split-complementary
#BA7BF2 #EEF27B #7BF27F
monochromatic
#7F16DD #9D43ED #BA7BF2 #D7B3F7 #F0E3FC

Accessibility & contrast

On white

2.92
#BA7BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#BA7BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF2#FFFFFF#000000##000000
##BA7BF21.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#6B98EF
Tritanopia (blue-blind)
#B290AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7bf2;
/* rgb */ color: rgb(186, 123, 242);
/* oklch */ color: oklch(69.6% 0.177 306.8);
Tailwind
colors: {
  custom: {
    50: '#d1a3f7',
    500: '#ba7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf2;
$custom-light: #d1a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf2",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 271.765,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69614,
    "c": 0.17737,
    "h": 306.8
  },
  "luminance": 0.31016
}

Semantic roles & 50–950 ramp

primary
#BA7BF2
secondary
#E4F4D5
accent
#DE076C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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