#BA79CB#BA79CB

#BA79CB is a light, vivid purple. Relative luminance 0.284; OKLCH L 67.3% C 0.136 H 319.1°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#BA79CB
RGBrgb(186, 121, 203)
HSLhsl(288, 44%, 64%)
HSVhsv(288, 40%, 80%)
CMYKcmyk(8.4%, 40.4%, 0%, 20.4%)
CIE-LABlab(60.27, 39.15, -32.45)
CIE-LCHlch(60.27, 50.84, 320.35°)
OKLaboklab(67.34% 0.1031 -0.0892)
OKLCHoklch(67.34% 0.136 319.1)
XYZxyz(37.8651, 28.4268, 59.9806)
Luminance0.2843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79CB #8ACB79
analogous
#9179CB #BA79CB #CB79B3
triadic
#BA79CB #CBBA79 #79CBBA
tetradic
#BA79CB #CB9179 #8ACB79 #79B3CB
square
#BA79CB #CB9179 #8ACB79 #79B3CB
split-complementary
#BA79CB #B3CB79 #79CB91
monochromatic
#7F3891 #A34DBA #BA79CB #D1A5DC #E7D1ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA79CB#FFFFFF#000000##000000
##BA79CB1.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)
#6D8DCE
Deuteranopia (green-blind)
#7E94C9
Tritanopia (blue-blind)
#BB8398
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba79cb;
/* rgb */ color: rgb(186, 121, 203);
/* oklch */ color: oklch(67.3% 0.136 319.1);
Tailwind
colors: {
  custom: {
    50: '#d0a1db',
    500: '#ba79cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba79cb;
$custom-light: #d0a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79cb",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 203
  },
  "hsl": {
    "h": 287.561,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.67338,
    "c": 0.13635,
    "h": 319.1
  },
  "luminance": 0.28426
}

Semantic roles & 50–950 ramp

primary
#BA79CB
secondary
#C7DEC1
accent
#B72E4B
background
#FCFAFD
surface
#F9F3FB
border
#D2CDD4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA79CB

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

Preview Lab → · Contrast checker → · Palette generator →

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