#BA7BED#BA7BED

#BA7BED is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.3% C 0.172 H 308.0°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#BA7BED
RGBrgb(186, 123, 237)
HSLhsl(273, 76%, 71%)
HSVhsv(273, 48%, 93%)
CMYKcmyk(21.5%, 48.1%, 0%, 7.1%)
CIE-LABlab(62.27, 45.32, -48.33)
CIE-LCHlch(62.27, 66.25, 313.16°)
OKLaboklab(69.35% 0.1057 -0.1351)
OKLCHoklch(69.35% 0.172 308)
XYZxyz(42.6157, 30.7200, 83.7889)
Luminance0.3072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BED #AEED7B
analogous
#817BED #BA7BED #ED7BE7
triadic
#BA7BED #EDBA7B #7BEDBA
tetradic
#BA7BED #ED817B #AEED7B #7BE7ED
square
#BA7BED #ED817B #AEED7B #7BE7ED
split-complementary
#BA7BED #E7ED7B #7BED81
monochromatic
#801DD1 #9E45E6 #BA7BED #D6B1F4 #F1E4FB

Accessibility & contrast

On white

2.94
#BA7BED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#BA7BED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BED
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BED#FFFFFF#000000##000000
##BA7BED1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D94F1
Deuteranopia (green-blind)
#6F97EA
Tritanopia (blue-blind)
#B38EA9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7bed;
/* rgb */ color: rgb(186, 123, 237);
/* oklch */ color: oklch(69.3% 0.172 308.0);
Tailwind
colors: {
  custom: {
    50: '#d1a3f3',
    500: '#ba7bed',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bed;
$custom-light: #d1a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bed",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 237
  },
  "hsl": {
    "h": 273.158,
    "s": 76,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69346,
    "c": 0.17156,
    "h": 308
  },
  "luminance": 0.30719
}

Semantic roles & 50–950 ramp

primary
#BA7BED
secondary
#E0F1D2
accent
#D80D68
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BED

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

Preview Lab → · Contrast checker → · Palette generator →

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