#BA7BDF#BA7BDF

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

Color values

HEX#BA7BDF
RGBrgb(186, 123, 223)
HSLhsl(278, 61%, 68%)
HSVhsv(278, 45%, 87%)
CMYKcmyk(16.6%, 44.8%, 0%, 12.5%)
CIE-LABlab(61.60, 42.24, -41.60)
CIE-LCHlch(61.60, 59.29, 315.44°)
OKLaboklab(68.62% 0.1038 -0.1156)
OKLCHoklch(68.62% 0.155 311.9)
XYZxyz(40.6496, 29.9335, 73.4341)
Luminance0.2993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BDF #A0DF7B
analogous
#887BDF #BA7BDF #DF7BD2
triadic
#BA7BDF #DFBA7B #7BDFBA
tetradic
#BA7BDF #DF887B #A0DF7B #7BD2DF
square
#BA7BDF #DF887B #A0DF7B #7BD2DF
split-complementary
#BA7BDF #D2DF7B #7BDF88
monochromatic
#822CB4 #A04AD3 #BA7BDF #D4ACEB #EDDEF7

Accessibility & contrast

On white

3.01
#BA7BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7BDF#FFFFFF#000000##000000
##BA7BDF1.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6691E3
Deuteranopia (green-blind)
#7696DC
Tritanopia (blue-blind)
#B68AA2
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7bdf;
/* rgb */ color: rgb(186, 123, 223);
/* oklch */ color: oklch(68.6% 0.155 311.9);
Tailwind
colors: {
  custom: {
    50: '#d0a2e9',
    500: '#ba7bdf',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bdf;
$custom-light: #d0a2e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bdf",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 223
  },
  "hsl": {
    "h": 277.8,
    "s": 60.976,
    "l": 67.843
  },
  "oklch": {
    "l": 0.68623,
    "c": 0.15538,
    "h": 311.9
  },
  "luminance": 0.29933
}

Semantic roles & 50–950 ramp

primary
#BA7BDF
secondary
#D7EACB
accent
#C91D5C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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