#BA79DB#BA79DB

#BA79DB is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.1% C 0.154 H 313.5°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#BA79DB
RGBrgb(186, 121, 219)
HSLhsl(280, 58%, 67%)
HSVhsv(280, 45%, 86%)
CMYKcmyk(15.1%, 44.7%, 0%, 14.1%)
CIE-LABlab(60.98, 42.47, -40.33)
CIE-LCHlch(60.98, 58.57, 316.48°)
OKLaboklab(68.1% 0.106 -0.1119)
OKLCHoklch(68.1% 0.154 313.5)
XYZxyz(39.8711, 29.2292, 70.5455)
Luminance0.2923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79DB #9ADB79
analogous
#8979DB #BA79DB #DB79CB
triadic
#BA79DB #DBBA79 #79DBBA
tetradic
#BA79DB #DB8979 #9ADB79 #79CBDB
square
#BA79DB #DB8979 #9ADB79 #79CBDB
split-complementary
#BA79DB #CBDB79 #79DB89
monochromatic
#812EAC #A149CE #BA79DB #D3A9E8 #ECD9F5

Accessibility & contrast

On white

3.07
#BA79DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#BA79DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79DB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79DB#FFFFFF#000000##000000
##BA79DB1.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6590DE
Deuteranopia (green-blind)
#7795D8
Tritanopia (blue-blind)
#B787A0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba79db;
/* rgb */ color: rgb(186, 121, 219);
/* oklch */ color: oklch(68.1% 0.154 313.5);
Tailwind
colors: {
  custom: {
    50: '#d0a1e6',
    500: '#ba79db',
    950: '#000000',
  },
}
SCSS
$custom: #ba79db;
$custom-light: #d0a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79db",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 219
  },
  "hsl": {
    "h": 279.796,
    "s": 57.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68104,
    "c": 0.15415,
    "h": 313.5
  },
  "luminance": 0.29228
}

Semantic roles & 50–950 ramp

primary
#BA79DB
secondary
#D3E8C8
accent
#C52058
background
#FDFAFE
surface
#FAF3FC
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA79DB

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

Preview Lab → · Contrast checker → · Palette generator →

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