#BA7FF7#BA7FF7

#BA7FF7 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.5% C 0.177 H 305.0°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#BA7FF7
RGBrgb(186, 127, 247)
HSLhsl(270, 88%, 73%)
HSVhsv(270, 49%, 97%)
CMYKcmyk(24.7%, 48.6%, 0%, 3.1%)
CIE-LABlab(63.62, 45.43, -51.72)
CIE-LCHlch(63.62, 68.84, 311.30°)
OKLaboklab(70.51% 0.1015 -0.145)
OKLCHoklch(70.51% 0.177 305)
XYZxyz(44.6240, 32.3335, 91.8678)
Luminance0.3233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FF7 #BCF77F
analogous
#7F80F7 #BA7FF7 #F67FF7
triadic
#BA7FF7 #F7BA7F #7FF7BA
tetradic
#BA7FF7 #F77F80 #BCF77F #7FF7F6
square
#BA7FF7 #F77F80 #BCF77F #7FF7F6
split-complementary
#BA7FF7 #F7F67F #80F77F
monochromatic
#7C0FED #9B45F3 #BA7FF7 #D9B9FB #EFE2FD

Accessibility & contrast

On white

2.81
#BA7FF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#BA7FF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FF7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FF7#FFFFFF#000000##000000
##BA7FF71.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FB
Deuteranopia (green-blind)
#6C9AF4
Tritanopia (blue-blind)
#B094B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7ff7;
/* rgb */ color: rgb(186, 127, 247);
/* oklch */ color: oklch(70.5% 0.177 305.0);
Tailwind
colors: {
  custom: {
    50: '#d1a5fa',
    500: '#ba7ff7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ff7;
$custom-light: #d1a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ff7",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 269.5,
    "s": 88.235,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70512,
    "c": 0.17698,
    "h": 305
  },
  "luminance": 0.32333
}

Semantic roles & 50–950 ramp

primary
#BA7FF7
secondary
#E6F5D6
accent
#E50175
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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