#BA76F8#BA76F8

#BA76F8 is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.2% C 0.192 H 306.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#BA76F8
RGBrgb(186, 118, 248)
HSLhsl(271, 90%, 72%)
HSVhsv(271, 52%, 97%)
CMYKcmyk(25%, 52.4%, 0%, 2.7%)
CIE-LABlab(61.80, 50.45, -55.15)
CIE-LCHlch(61.80, 74.74, 312.45°)
OKLaboklab(69.18% 0.1133 -0.155)
OKLCHoklch(69.18% 0.192 306.2)
XYZxyz(43.6679, 30.1736, 92.3124)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76F8 #B4F876
analogous
#7976F8 #BA76F8 #F876F5
triadic
#BA76F8 #F8BA76 #76F8BA
tetradic
#BA76F8 #F87976 #B4F876 #76F5F8
square
#BA76F8 #F87976 #B4F876 #76F5F8
split-complementary
#BA76F8 #F5F876 #76F879
monochromatic
#7F0CE8 #9D3CF5 #BA76F8 #D7B0FB #F0E2FE

Accessibility & contrast

On white

2.99
#BA76F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#BA76F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA76F8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76F8#FFFFFF#000000##000000
##BA76F81.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C93FC
Deuteranopia (green-blind)
#6296F5
Tritanopia (blue-blind)
#B08EAC
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba76f8;
/* rgb */ color: rgb(186, 118, 248);
/* oklch */ color: oklch(69.2% 0.192 306.2);
Tailwind
colors: {
  custom: {
    50: '#d29ffb',
    500: '#ba76f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba76f8;
$custom-light: #d29ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76f8",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 248
  },
  "hsl": {
    "h": 271.385,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69183,
    "c": 0.19197,
    "h": 306.2
  },
  "luminance": 0.30173
}

Semantic roles & 50–950 ramp

primary
#BA76F8
secondary
#E4F5D4
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA76F8

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

Preview Lab → · Contrast checker → · Palette generator →

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