#BA79FB#BA79FB

#BA79FB is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.8% C 0.191 H 305.1°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#BA79FB
RGBrgb(186, 121, 251)
HSLhsl(270, 94%, 73%)
HSVhsv(270, 52%, 98%)
CMYKcmyk(25.9%, 51.8%, 0%, 1.6%)
CIE-LABlab(62.57, 49.55, -55.57)
CIE-LCHlch(62.57, 74.46, 311.72°)
OKLaboklab(69.8% 0.1097 -0.1562)
OKLCHoklch(69.8% 0.191 305.1)
XYZxyz(44.4959, 31.0791, 94.9028)
Luminance0.3108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79FB #BAFB79
analogous
#7979FB #BA79FB #FB79FB
triadic
#BA79FB #FBBA79 #79FBBA
tetradic
#BA79FB #FB7979 #BAFB79 #79FBFB
square
#BA79FB #FB7979 #BAFB79 #79FBFB
split-complementary
#BA79FB #FBFB79 #79FB79
monochromatic
#7D07F2 #9B3EF9 #BA79FB #D9B4FD #F0E1FE

Accessibility & contrast

On white

2.91
#BA79FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#BA79FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79FB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79FB#FFFFFF#000000##000000
##BA79FB1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F95FF
Deuteranopia (green-blind)
#6398F8
Tritanopia (blue-blind)
#AF91AF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba79fb;
/* rgb */ color: rgb(186, 121, 251);
/* oklch */ color: oklch(69.8% 0.191 305.1);
Tailwind
colors: {
  custom: {
    50: '#d2a1fd',
    500: '#ba79fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba79fb;
$custom-light: #d2a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79fb",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 251
  },
  "hsl": {
    "h": 270,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69805,
    "c": 0.19087,
    "h": 305.1
  },
  "luminance": 0.31079
}

Semantic roles & 50–950 ramp

primary
#BA79FB
secondary
#E6F6D5
accent
#E60073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA79FB

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

Preview Lab → · Contrast checker → · Palette generator →

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