#BA7FF2#BA7FF2

#BA7FF2 is a light, vivid violet. Relative luminance 0.320; OKLCH L 70.2% C 0.171 H 306.2°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#BA7FF2
RGBrgb(186, 127, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.1%, 47.5%, 0%, 5.1%)
CIE-LABlab(63.37, 44.29, -49.36)
CIE-LCHlch(63.37, 66.31, 311.90°)
OKLaboklab(70.24% 0.101 -0.1381)
OKLCHoklch(70.24% 0.171 306.2)
XYZxyz(43.8628, 32.0290, 87.8587)
Luminance0.3203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FF2 #B7F27F
analogous
#817FF2 #BA7FF2 #F27FF0
triadic
#BA7FF2 #F2BA7F #7FF2BA
tetradic
#BA7FF2 #F2817F #B7F27F #7FF0F2
square
#BA7FF2 #F2817F #B7F27F #7FF0F2
split-complementary
#BA7FF2 #F0F27F #7FF281
monochromatic
#7E17E0 #9C47EC #BA7FF2 #D8B7F8 #F0E3FC

Accessibility & contrast

On white

2.84
#BA7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#BA7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FF2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FF2#FFFFFF#000000##000000
##BA7FF21.002.847.417.41
#FFFFFF2.841.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#709AEF
Tritanopia (blue-blind)
#B193AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7ff2;
/* rgb */ color: rgb(186, 127, 242);
/* oklch */ color: oklch(70.2% 0.171 306.2);
Tailwind
colors: {
  custom: {
    50: '#d1a5f7',
    500: '#ba7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ff2;
$custom-light: #d1a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ff2",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 270.783,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70243,
    "c": 0.17107,
    "h": 306.2
  },
  "luminance": 0.32029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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