#BA7ADE#BA7ADE

#BA7ADE is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.4% C 0.156 H 312.4°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA7ADE
RGBrgb(186, 122, 222)
HSLhsl(278, 60%, 67%)
HSVhsv(278, 45%, 87%)
CMYKcmyk(16.2%, 45%, 0%, 12.9%)
CIE-LABlab(61.34, 42.57, -41.46)
CIE-LCHlch(61.34, 59.42, 315.76°)
OKLaboklab(68.41% 0.1051 -0.1152)
OKLCHoklch(68.41% 0.156 312.4)
XYZxyz(40.3918, 29.6329, 72.6850)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7ADE #9EDE7A
analogous
#887ADE #BA7ADE #DE7AD0
triadic
#BA7ADE #DEBA7A #7ADEBA
tetradic
#BA7ADE #DE887A #9EDE7A #7AD0DE
square
#BA7ADE #DE887A #9EDE7A #7AD0DE
split-complementary
#BA7ADE #D0DE7A #7ADE88
monochromatic
#812CB2 #A149D2 #BA7ADE #D3ABEA #EDDCF6

Accessibility & contrast

On white

3.03
#BA7ADE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#BA7ADE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7ADE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7ADE#FFFFFF#000000##000000
##BA7ADE1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6591E2
Deuteranopia (green-blind)
#7696DB
Tritanopia (blue-blind)
#B789A2
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7ade;
/* rgb */ color: rgb(186, 122, 222);
/* oklch */ color: oklch(68.4% 0.156 312.4);
Tailwind
colors: {
  custom: {
    50: '#d0a2e8',
    500: '#ba7ade',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ade;
$custom-light: #d0a2e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ade",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 222
  },
  "hsl": {
    "h": 278.4,
    "s": 60.241,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68413,
    "c": 0.1559,
    "h": 312.4
  },
  "luminance": 0.29632
}

Semantic roles & 50–950 ramp

primary
#BA7ADE
secondary
#D6EACA
accent
#C81E5B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7ADE

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

Preview Lab → · Contrast checker → · Palette generator →

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