#BA7AEF#BA7AEF

#BA7AEF is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.3% C 0.175 H 307.7°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#BA7AEF
RGBrgb(186, 122, 239)
HSLhsl(273, 79%, 71%)
HSVhsv(273, 49%, 94%)
CMYKcmyk(22.2%, 49%, 0%, 6.3%)
CIE-LABlab(62.16, 46.30, -49.61)
CIE-LCHlch(62.16, 67.86, 313.02°)
OKLaboklab(69.3% 0.1073 -0.1388)
OKLCHoklch(69.3% 0.175 307.7)
XYZxyz(42.7861, 30.5907, 85.2952)
Luminance0.3059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AEF #AFEF7A
analogous
#7F7AEF #BA7AEF #EF7AE9
triadic
#BA7AEF #EFBA7A #7AEFBA
tetradic
#BA7AEF #EF7F7A #AFEF7A #7AE9EF
square
#BA7AEF #EF7F7A #AFEF7A #7AE9EF
split-complementary
#BA7AEF #E9EF7A #7AEF7F
monochromatic
#801AD5 #9E43E8 #BA7AEF #D6B1F6 #F1E4FC

Accessibility & contrast

On white

2.95
#BA7AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#BA7AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AEF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AEF#FFFFFF#000000##000000
##BA7AEF1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A94F3
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#B28EA9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aef;
/* rgb */ color: rgb(186, 122, 239);
/* oklch */ color: oklch(69.3% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#d1a2f5',
    500: '#ba7aef',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aef;
$custom-light: #d1a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aef",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 272.821,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69296,
    "c": 0.17545,
    "h": 307.7
  },
  "luminance": 0.3059
}

Semantic roles & 50–950 ramp

primary
#BA7AEF
secondary
#E1F2D3
accent
#DB0B69
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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