#BA7DEC#BA7DEC

#BA7DEC is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.6% C 0.167 H 308.0°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#BA7DEC
RGBrgb(186, 125, 236)
HSLhsl(273, 74%, 71%)
HSVhsv(273, 47%, 93%)
CMYKcmyk(21.2%, 47%, 0%, 7.5%)
CIE-LABlab(62.65, 44.02, -47.18)
CIE-LCHlch(62.65, 64.53, 313.01°)
OKLaboklab(69.61% 0.1029 -0.1318)
OKLCHoklch(69.61% 0.167 308)
XYZxyz(42.7207, 31.1630, 83.1051)
Luminance0.3116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DEC #AFEC7D
analogous
#827DEC #BA7DEC #EC7DE6
triadic
#BA7DEC #ECBA7D #7DECBA
tetradic
#BA7DEC #EC827D #AFEC7D #7DE6EC
square
#BA7DEC #EC827D #AFEC7D #7DE6EC
split-complementary
#BA7DEC #E6EC7D #7DEC82
monochromatic
#801ED0 #9E48E4 #BA7DEC #D6B2F4 #F1E4FB

Accessibility & contrast

On white

2.90
#BA7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#BA7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DEC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DEC#FFFFFF#000000##000000
##BA7DEC1.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195F0
Deuteranopia (green-blind)
#7198E9
Tritanopia (blue-blind)
#B38FA9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7dec;
/* rgb */ color: rgb(186, 125, 236);
/* oklch */ color: oklch(69.6% 0.167 308.0);
Tailwind
colors: {
  custom: {
    50: '#d1a4f2',
    500: '#ba7dec',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dec;
$custom-light: #d1a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dec",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 272.973,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69609,
    "c": 0.16719,
    "h": 308
  },
  "luminance": 0.31162
}

Semantic roles & 50–950 ramp

primary
#BA7DEC
secondary
#E1F1D3
accent
#D70F69
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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