#BA79CE#BA79CE

#BA79CE is a light, vivid purple. Relative luminance 0.286; OKLCH L 67.5% C 0.140 H 318.0°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#BA79CE
RGBrgb(186, 121, 206)
HSLhsl(286, 46%, 64%)
HSVhsv(286, 41%, 81%)
CMYKcmyk(9.7%, 41.3%, 0%, 19.2%)
CIE-LABlab(60.40, 39.76, -33.94)
CIE-LCHlch(60.40, 52.27, 319.51°)
OKLaboklab(67.48% 0.1037 -0.0935)
OKLCHoklch(67.48% 0.14 318)
XYZxyz(38.2261, 28.5712, 61.8817)
Luminance0.2857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79CE #8DCE79
analogous
#9079CE #BA79CE #CE79B8
triadic
#BA79CE #CEBA79 #79CEBA
tetradic
#BA79CE #CE9079 #8DCE79 #79B8CE
square
#BA79CE #CE9079 #8DCE79 #79B8CE
split-complementary
#BA79CE #B8CE79 #79CE90
monochromatic
#7F3796 #A34CBE #BA79CE #D1A6DE #E8D3EF

Accessibility & contrast

On white

3.13
#BA79CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#BA79CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79CE
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79CE#FFFFFF#000000##000000
##BA79CE1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8DD1
Deuteranopia (green-blind)
#7D94CB
Tritanopia (blue-blind)
#BA849A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba79ce;
/* rgb */ color: rgb(186, 121, 206);
/* oklch */ color: oklch(67.5% 0.140 318.0);
Tailwind
colors: {
  custom: {
    50: '#d0a1dd',
    500: '#ba79ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba79ce;
$custom-light: #d0a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79ce",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 206
  },
  "hsl": {
    "h": 285.882,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.67477,
    "c": 0.13963,
    "h": 318
  },
  "luminance": 0.2857
}

Semantic roles & 50–950 ramp

primary
#BA79CE
secondary
#CAE0C3
accent
#BA2C4D
background
#FCFAFD
surface
#F9F3FB
border
#D2CDD4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA79CE

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

Preview Lab → · Contrast checker → · Palette generator →

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