#BA7CDB#BA7CDB

#BA7CDB is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.6% C 0.149 H 313.0°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#BA7CDB
RGBrgb(186, 124, 219)
HSLhsl(279, 57%, 67%)
HSVhsv(279, 43%, 86%)
CMYKcmyk(15.1%, 43.4%, 0%, 14.1%)
CIE-LABlab(61.63, 40.84, -39.32)
CIE-LCHlch(61.63, 56.69, 316.09°)
OKLaboklab(68.59% 0.1018 -0.109)
OKLCHoklch(68.59% 0.149 313)
XYZxyz(40.2414, 29.9697, 70.6690)
Luminance0.2997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CDB #9DDB7C
analogous
#8B7CDB #BA7CDB #DB7CCC
triadic
#BA7CDB #DBBA7C #7CDBBA
tetradic
#BA7CDB #DB8B7C #9DDB7C #7CCCDB
square
#BA7CDB #DB8B7C #9DDB7C #7CCCDB
split-complementary
#BA7CDB #CCDB7C #7CDB8B
monochromatic
#8130AD #A14CCE #BA7CDB #D3ACE8 #EDDCF5

Accessibility & contrast

On white

3.00
#BA7CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#BA7CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CDB
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CDB#FFFFFF#000000##000000
##BA7CDB1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6991DE
Deuteranopia (green-blind)
#7996D8
Tritanopia (blue-blind)
#B78AA1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7cdb;
/* rgb */ color: rgb(186, 124, 219);
/* oklch */ color: oklch(68.6% 0.149 313.0);
Tailwind
colors: {
  custom: {
    50: '#d0a3e6',
    500: '#ba7cdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cdb;
$custom-light: #d0a3e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cdb",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 279.158,
    "s": 56.886,
    "l": 67.255
  },
  "oklch": {
    "l": 0.68586,
    "c": 0.14913,
    "h": 313
  },
  "luminance": 0.29969
}

Semantic roles & 50–950 ramp

primary
#BA7CDB
secondary
#D5E8CA
accent
#C4215A
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA7CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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