#BA7DED#BA7DED

#BA7DED is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.7% C 0.168 H 307.7°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#BA7DED
RGBrgb(186, 125, 237)
HSLhsl(273, 76%, 71%)
HSVhsv(273, 47%, 93%)
CMYKcmyk(21.5%, 47.3%, 0%, 7.1%)
CIE-LABlab(62.69, 44.24, -47.66)
CIE-LCHlch(62.69, 65.03, 312.87°)
OKLaboklab(69.66% 0.103 -0.1332)
OKLCHoklch(69.66% 0.168 307.7)
XYZxyz(42.8664, 31.2212, 83.8724)
Luminance0.3122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DED #B0ED7D
analogous
#827DED #BA7DED #ED7DE8
triadic
#BA7DED #EDBA7D #7DEDBA
tetradic
#BA7DED #ED827D #B0ED7D #7DE8ED
square
#BA7DED #ED827D #B0ED7D #7DE8ED
split-complementary
#BA7DED #E8ED7D #7DED82
monochromatic
#801DD2 #9D47E6 #BA7DED #D7B3F4 #F1E4FB

Accessibility & contrast

On white

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

On black

7.24
#BA7DED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DED
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DED#FFFFFF#000000##000000
##BA7DED1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6095F1
Deuteranopia (green-blind)
#7198EA
Tritanopia (blue-blind)
#B390AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7ded;
/* rgb */ color: rgb(186, 125, 237);
/* oklch */ color: oklch(69.7% 0.168 307.7);
Tailwind
colors: {
  custom: {
    50: '#d1a4f3',
    500: '#ba7ded',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ded;
$custom-light: #d1a4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ded",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 237
  },
  "hsl": {
    "h": 272.679,
    "s": 75.676,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69661,
    "c": 0.16837,
    "h": 307.7
  },
  "luminance": 0.31221
}

Semantic roles & 50–950 ramp

primary
#BA7DED
secondary
#E2F2D4
accent
#D80E6A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DED

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

Preview Lab → · Contrast checker → · Palette generator →

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