#BA79FC#BA79FC

#BA79FC is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.9% C 0.192 H 304.8°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#BA79FC
RGBrgb(186, 121, 252)
HSLhsl(270, 96%, 73%)
HSVhsv(270, 52%, 99%)
CMYKcmyk(26.2%, 52%, 0%, 1.2%)
CIE-LABlab(62.63, 49.78, -56.04)
CIE-LCHlch(62.63, 74.96, 311.62°)
OKLaboklab(69.86% 0.1097 -0.1576)
OKLCHoklch(69.86% 0.192 304.8)
XYZxyz(44.6540, 31.1424, 95.7352)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79FC #BBFC79
analogous
#7979FC #BA79FC #FB79FC
triadic
#BA79FC #FCBA79 #79FCBA
tetradic
#BA79FC #FC7979 #BBFC79 #79FCFB
square
#BA79FC #FC7979 #BBFC79 #79FCFB
split-complementary
#BA79FC #FCFB79 #79FC79
monochromatic
#7C05F5 #9B3DFB #BA79FC #D9B5FD #F0E1FE

Accessibility & contrast

On white

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

On black

7.23
#BA79FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79FC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79FC#FFFFFF#000000##000000
##BA79FC1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#6298F9
Tritanopia (blue-blind)
#AF91AF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba79fc;
/* rgb */ color: rgb(186, 121, 252);
/* oklch */ color: oklch(69.9% 0.192 304.8);
Tailwind
colors: {
  custom: {
    50: '#d2a1fe',
    500: '#ba79fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba79fc;
$custom-light: #d2a1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79fc",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 252
  },
  "hsl": {
    "h": 269.771,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69861,
    "c": 0.19202,
    "h": 304.8
  },
  "luminance": 0.31142
}

Semantic roles & 50–950 ramp

primary
#BA79FC
secondary
#E6F7D4
accent
#E60074
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA79FC

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

Preview Lab → · Contrast checker → · Palette generator →

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