#BA7FEE#BA7FEE

#BA7FEE is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.0% C 0.166 H 307.2°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#BA7FEE
RGBrgb(186, 127, 238)
HSLhsl(272, 77%, 72%)
HSVhsv(272, 47%, 93%)
CMYKcmyk(21.8%, 46.6%, 0%, 6.7%)
CIE-LABlab(63.17, 43.38, -47.46)
CIE-LCHlch(63.17, 64.30, 312.43°)
OKLaboklab(70.03% 0.1005 -0.1326)
OKLCHoklch(70.03% 0.166 307.2)
XYZxyz(43.2686, 31.7913, 84.7293)
Luminance0.3179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FEE #B3EE7F
analogous
#837FEE #BA7FEE #EE7FEB
triadic
#BA7FEE #EEBA7F #7FEEBA
tetradic
#BA7FEE #EE837F #B3EE7F #7FEBEE
square
#BA7FEE #EE837F #B3EE7F #7FEBEE
split-complementary
#BA7FEE #EBEE7F #7FEE83
monochromatic
#7F1CD6 #9D49E7 #BA7FEE #D7B5F5 #F0E4FB

Accessibility & contrast

On white

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

On black

7.36
#BA7FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FEE
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FEE#FFFFFF#000000##000000
##BA7FEE1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F2
Deuteranopia (green-blind)
#7299EB
Tritanopia (blue-blind)
#B291AB
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7fee;
/* rgb */ color: rgb(186, 127, 238);
/* oklch */ color: oklch(70.0% 0.166 307.2);
Tailwind
colors: {
  custom: {
    50: '#d1a5f4',
    500: '#ba7fee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fee;
$custom-light: #d1a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fee",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 271.892,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70032,
    "c": 0.16635,
    "h": 307.2
  },
  "luminance": 0.31791
}

Semantic roles & 50–950 ramp

primary
#BA7FEE
secondary
#E4F3D6
accent
#D90D6C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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