#BA7EF2#BA7EF2

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

Color values

HEX#BA7EF2
RGBrgb(186, 126, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.1%, 47.9%, 0%, 5.1%)
CIE-LABlab(63.15, 44.83, -49.69)
CIE-LCHlch(63.15, 66.93, 312.05°)
OKLaboklab(70.08% 0.1023 -0.1391)
OKLCHoklch(70.08% 0.173 306.3)
XYZxyz(43.7343, 31.7720, 87.8158)
Luminance0.3177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EF2 #B6F27E
analogous
#807EF2 #BA7EF2 #F27EF0
triadic
#BA7EF2 #F2BA7E #7EF2BA
tetradic
#BA7EF2 #F2807E #B6F27E #7EF0F2
square
#BA7EF2 #F2807E #B6F27E #7EF0F2
split-complementary
#BA7EF2 #F0F27E #7EF280
monochromatic
#7E16DF #9C46EC #BA7EF2 #D8B6F8 #F0E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7EF2#FFFFFF#000000##000000
##BA7EF21.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)
#5E97F6
Deuteranopia (green-blind)
#6F99EF
Tritanopia (blue-blind)
#B192AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7ef2;
/* rgb */ color: rgb(186, 126, 242);
/* oklch */ color: oklch(70.1% 0.173 306.3);
Tailwind
colors: {
  custom: {
    50: '#d1a5f7',
    500: '#ba7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ef2;
$custom-light: #d1a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ef2",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 271.034,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.70085,
    "c": 0.17265,
    "h": 306.3
  },
  "luminance": 0.31772
}

Semantic roles & 50–950 ramp

primary
#BA7EF2
secondary
#E5F4D7
accent
#DE076F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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