#BA79F8#BA79F8

#BA79F8 is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.6% C 0.187 H 305.7°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#BA79F8
RGBrgb(186, 121, 248)
HSLhsl(271, 90%, 72%)
HSVhsv(271, 51%, 97%)
CMYKcmyk(25%, 51.2%, 0%, 2.7%)
CIE-LABlab(62.42, 48.87, -54.17)
CIE-LCHlch(62.42, 72.96, 312.05°)
OKLaboklab(69.64% 0.1094 -0.1521)
OKLCHoklch(69.64% 0.187 305.7)
XYZxyz(44.0268, 30.8915, 92.4320)
Luminance0.3089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79F8 #B7F879
analogous
#7B79F8 #BA79F8 #F879F6
triadic
#BA79F8 #F8BA79 #79F8BA
tetradic
#BA79F8 #F87B79 #B7F879 #79F6F8
square
#BA79F8 #F87B79 #B7F879 #79F6F8
split-complementary
#BA79F8 #F6F879 #79F87B
monochromatic
#7E0CEA #9C3FF5 #BA79F8 #D8B3FB #F0E2FD

Accessibility & contrast

On white

2.93
#BA79F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#BA79F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79F8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79F8#FFFFFF#000000##000000
##BA79F81.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5295FC
Deuteranopia (green-blind)
#6597F5
Tritanopia (blue-blind)
#B090AD
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba79f8;
/* rgb */ color: rgb(186, 121, 248);
/* oklch */ color: oklch(69.6% 0.187 305.7);
Tailwind
colors: {
  custom: {
    50: '#d2a1fb',
    500: '#ba79f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba79f8;
$custom-light: #d2a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79f8",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 248
  },
  "hsl": {
    "h": 270.709,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69636,
    "c": 0.18741,
    "h": 305.7
  },
  "luminance": 0.30891
}

Semantic roles & 50–950 ramp

primary
#BA79F8
secondary
#E5F6D5
accent
#E60070
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA79F8

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

Preview Lab → · Contrast checker → · Palette generator →

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