#BA7AEC#BA7AEC

#BA7AEC is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.172 H 308.5°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#BA7AEC
RGBrgb(186, 122, 236)
HSLhsl(274, 75%, 70%)
HSVhsv(274, 48%, 93%)
CMYKcmyk(21.2%, 48.3%, 0%, 7.5%)
CIE-LABlab(62.01, 45.63, -48.18)
CIE-LCHlch(62.01, 66.36, 313.44°)
OKLaboklab(69.14% 0.107 -0.1347)
OKLCHoklch(69.14% 0.172 308.5)
XYZxyz(42.3466, 30.4149, 82.9804)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AEC #ACEC7A
analogous
#817AEC #BA7AEC #EC7AE5
triadic
#BA7AEC #ECBA7A #7AECBA
tetradic
#BA7AEC #EC817A #ACEC7A #7AE5EC
square
#BA7AEC #EC817A #ACEC7A #7AE5EC
split-complementary
#BA7AEC #E5EC7A #7AEC81
monochromatic
#811DCE #9E44E4 #BA7AEC #D6B0F4 #F1E4FB

Accessibility & contrast

On white

2.96
#BA7AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#BA7AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AEC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AEC#FFFFFF#000000##000000
##BA7AEC1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C93F0
Deuteranopia (green-blind)
#6E97E9
Tritanopia (blue-blind)
#B38DA8
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aec;
/* rgb */ color: rgb(186, 122, 236);
/* oklch */ color: oklch(69.1% 0.172 308.5);
Tailwind
colors: {
  custom: {
    50: '#d1a2f2',
    500: '#ba7aec',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aec;
$custom-light: #d1a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aec",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 273.684,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.69136,
    "c": 0.17199,
    "h": 308.5
  },
  "luminance": 0.30414
}

Semantic roles & 50–950 ramp

primary
#BA7AEC
secondary
#DFF1D1
accent
#D70E66
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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