#BA7CF2#BA7CF2

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

Color values

HEX#BA7CF2
RGBrgb(186, 124, 242)
HSLhsl(272, 82%, 72%)
HSVhsv(272, 49%, 95%)
CMYKcmyk(23.1%, 48.8%, 0%, 5.1%)
CIE-LABlab(62.73, 45.90, -50.36)
CIE-LCHlch(62.73, 68.14, 312.35°)
OKLaboklab(69.77% 0.105 -0.141)
OKLCHoklch(69.77% 0.176 306.7)
XYZxyz(43.4811, 31.2656, 87.7314)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF2 #B4F27C
analogous
#7F7CF2 #BA7CF2 #F27CEF
triadic
#BA7CF2 #F2BA7C #7CF2BA
tetradic
#BA7CF2 #F27F7C #B4F27C #7CEFF2
square
#BA7CF2 #F27F7C #B4F27C #7CEFF2
split-complementary
#BA7CF2 #EFF27C #7CF27F
monochromatic
#7F16DE #9D44EC #BA7CF2 #D7B4F8 #F0E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7CF2#FFFFFF#000000##000000
##BA7CF21.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)
#5B96F6
Deuteranopia (green-blind)
#6C98EF
Tritanopia (blue-blind)
#B190AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7cf2;
/* rgb */ color: rgb(186, 124, 242);
/* oklch */ color: oklch(69.8% 0.176 306.7);
Tailwind
colors: {
  custom: {
    50: '#d1a3f7',
    500: '#ba7cf2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf2;
$custom-light: #d1a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf2",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 271.525,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6977,
    "c": 0.1758,
    "h": 306.7
  },
  "luminance": 0.31265
}

Semantic roles & 50–950 ramp

primary
#BA7CF2
secondary
#E4F4D6
accent
#DE076D
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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