#BA79DF#BA79DF

#BA79DF is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.3% C 0.159 H 312.2°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA79DF
RGBrgb(186, 121, 223)
HSLhsl(278, 61%, 67%)
HSVhsv(278, 46%, 87%)
CMYKcmyk(16.6%, 45.7%, 0%, 12.5%)
CIE-LABlab(61.17, 43.32, -42.27)
CIE-LCHlch(61.17, 60.53, 315.70°)
OKLaboklab(68.3% 0.1066 -0.1175)
OKLCHoklch(68.3% 0.159 312.2)
XYZxyz(40.4041, 29.4424, 73.3522)
Luminance0.2944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79DF #9EDF79
analogous
#8779DF #BA79DF #DF79D1
triadic
#BA79DF #DFBA79 #79DFBA
tetradic
#BA79DF #DF8779 #9EDF79 #79D1DF
square
#BA79DF #DF8779 #9EDF79 #79D1DF
split-complementary
#BA79DF #D1DF79 #79DF87
monochromatic
#812BB3 #A148D3 #BA79DF #D3AAEB #EDDCF7

Accessibility & contrast

On white

3.05
#BA79DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#BA79DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79DF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79DF#FFFFFF#000000##000000
##BA79DF1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6390E3
Deuteranopia (green-blind)
#7595DC
Tritanopia (blue-blind)
#B689A1
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba79df;
/* rgb */ color: rgb(186, 121, 223);
/* oklch */ color: oklch(68.3% 0.159 312.2);
Tailwind
colors: {
  custom: {
    50: '#d0a1e9',
    500: '#ba79df',
    950: '#000000',
  },
}
SCSS
$custom: #ba79df;
$custom-light: #d0a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79df",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 223
  },
  "hsl": {
    "h": 278.235,
    "s": 61.446,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68304,
    "c": 0.15869,
    "h": 312.2
  },
  "luminance": 0.29442
}

Semantic roles & 50–950 ramp

primary
#BA79DF
secondary
#D6EACA
accent
#C91C5B
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA79DF

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

Preview Lab → · Contrast checker → · Palette generator →

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