#BA79CC#BA79CC

#BA79CC is a light, vivid purple. Relative luminance 0.285; OKLCH L 67.4% C 0.137 H 318.7°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#BA79CC
RGBrgb(186, 121, 204)
HSLhsl(287, 45%, 64%)
HSVhsv(287, 41%, 80%)
CMYKcmyk(8.8%, 40.7%, 0%, 20%)
CIE-LABlab(60.32, 39.35, -32.94)
CIE-LCHlch(60.32, 51.32, 320.06°)
OKLaboklab(67.38% 0.1033 -0.0907)
OKLCHoklch(67.38% 0.137 318.7)
XYZxyz(37.9847, 28.4746, 60.6103)
Luminance0.2847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79CC #8BCC79
analogous
#9079CC #BA79CC #CC79B4
triadic
#BA79CC #CCBA79 #79CCBA
tetradic
#BA79CC #CC9079 #8BCC79 #79B4CC
square
#BA79CC #CC9079 #8BCC79 #79B4CC
split-complementary
#BA79CC #B4CC79 #79CC90
monochromatic
#7F3893 #A34DBB #BA79CC #D1A5DD #E8D2EE

Accessibility & contrast

On white

3.14
#BA79CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#BA79CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79CC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79CC#FFFFFF#000000##000000
##BA79CC1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8DCF
Deuteranopia (green-blind)
#7E94CA
Tritanopia (blue-blind)
#BA8399
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba79cc;
/* rgb */ color: rgb(186, 121, 204);
/* oklch */ color: oklch(67.4% 0.137 318.7);
Tailwind
colors: {
  custom: {
    50: '#d0a1dc',
    500: '#ba79cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba79cc;
$custom-light: #d0a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79cc",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 204
  },
  "hsl": {
    "h": 286.988,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.67384,
    "c": 0.13744,
    "h": 318.7
  },
  "luminance": 0.28473
}

Semantic roles & 50–950 ramp

primary
#BA79CC
secondary
#C8DFC2
accent
#B82D4C
background
#FCFAFD
surface
#F9F3FB
border
#D2CDD4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA79CC

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

Preview Lab → · Contrast checker → · Palette generator →

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