#BA7FEF#BA7FEF

#BA7FEF is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.1% C 0.168 H 306.9°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#BA7FEF
RGBrgb(186, 127, 239)
HSLhsl(272, 78%, 72%)
HSVhsv(272, 47%, 94%)
CMYKcmyk(22.2%, 46.9%, 0%, 6.3%)
CIE-LABlab(63.22, 43.61, -47.93)
CIE-LCHlch(63.22, 64.80, 312.30°)
OKLaboklab(70.08% 0.1006 -0.134)
OKLCHoklch(70.08% 0.168 306.9)
XYZxyz(43.4159, 31.8502, 85.5051)
Luminance0.3185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FEF #B4EF7F
analogous
#827FEF #BA7FEF #EF7FEC
triadic
#BA7FEF #EFBA7F #7FEFBA
tetradic
#BA7FEF #EF827F #B4EF7F #7FECEF
square
#BA7FEF #EF827F #B4EF7F #7FECEF
split-complementary
#BA7FEF #ECEF7F #7FEF82
monochromatic
#7F1BD9 #9D49E8 #BA7FEF #D7B5F6 #F0E4FC

Accessibility & contrast

On white

2.85
#BA7FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#BA7FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FEF
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FEF#FFFFFF#000000##000000
##BA7FEF1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#719AEC
Tritanopia (blue-blind)
#B292AC
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7fef;
/* rgb */ color: rgb(186, 127, 239);
/* oklch */ color: oklch(70.1% 0.168 306.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5f5',
    500: '#ba7fef',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fef;
$custom-light: #d1a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fef",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 271.607,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70085,
    "c": 0.16753,
    "h": 306.9
  },
  "luminance": 0.3185
}

Semantic roles & 50–950 ramp

primary
#BA7FEF
secondary
#E4F3D7
accent
#DA0B6D
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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