#BA79F7#BA79F7

#BA79F7 is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.6% C 0.186 H 306.0°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#BA79F7
RGBrgb(186, 121, 247)
HSLhsl(271, 89%, 72%)
HSVhsv(271, 51%, 97%)
CMYKcmyk(24.7%, 51%, 0%, 3.1%)
CIE-LABlab(62.36, 48.64, -53.70)
CIE-LCHlch(62.36, 72.46, 312.17°)
OKLaboklab(69.58% 0.1094 -0.1508)
OKLCHoklch(69.58% 0.186 306)
XYZxyz(43.8721, 30.8296, 91.6171)
Luminance0.3083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79F7 #B6F779
analogous
#7B79F7 #BA79F7 #F779F5
triadic
#BA79F7 #F7BA79 #79F7BA
tetradic
#BA79F7 #F77B79 #B6F779 #79F5F7
square
#BA79F7 #F77B79 #B6F779 #79F5F7
split-complementary
#BA79F7 #F5F779 #79F77B
monochromatic
#7E0EE8 #9C3FF4 #BA79F7 #D8B3FA #F0E2FD

Accessibility & contrast

On white

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

On black

7.17
#BA79F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79F7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79F7#FFFFFF#000000##000000
##BA79F71.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FB
Deuteranopia (green-blind)
#6697F4
Tritanopia (blue-blind)
#B08FAD
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba79f7;
/* rgb */ color: rgb(186, 121, 247);
/* oklch */ color: oklch(69.6% 0.186 306.0);
Tailwind
colors: {
  custom: {
    50: '#d1a1fa',
    500: '#ba79f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba79f7;
$custom-light: #d1a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79f7",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 247
  },
  "hsl": {
    "h": 270.952,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.6958,
    "c": 0.18626,
    "h": 306
  },
  "luminance": 0.30829
}

Semantic roles & 50–950 ramp

primary
#BA79F7
secondary
#E5F5D6
accent
#E5006F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA79F7

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

Preview Lab → · Contrast checker → · Palette generator →

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