#BA76FC#BA76FC

#BA76FC is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.4% C 0.197 H 305.3°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#BA76FC
RGBrgb(186, 118, 252)
HSLhsl(270, 96%, 73%)
HSVhsv(270, 53%, 99%)
CMYKcmyk(26.2%, 53.2%, 0%, 1.2%)
CIE-LABlab(62.02, 51.36, -57.01)
CIE-LCHlch(62.02, 76.73, 312.02°)
OKLaboklab(69.41% 0.1135 -0.1604)
OKLCHoklch(69.41% 0.197 305.3)
XYZxyz(44.2951, 30.4245, 95.6156)
Luminance0.3042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76FC #B8FC76
analogous
#7776FC #BA76FC #FC76FB
triadic
#BA76FC #FCBA76 #76FCBA
tetradic
#BA76FC #FC7776 #B8FC76 #76FBFC
square
#BA76FC #FC7776 #B8FC76 #76FBFC
split-complementary
#BA76FC #FBFC76 #76FC77
monochromatic
#7E05F2 #9C3AFB #BA76FC #D8B2FD #F0E1FE

Accessibility & contrast

On white

2.96
#BA76FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#BA76FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA76FC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76FC#FFFFFF#000000##000000
##BA76FC1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4994FF
Deuteranopia (green-blind)
#5F96F9
Tritanopia (blue-blind)
#AF8FAE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba76fc;
/* rgb */ color: rgb(186, 118, 252);
/* oklch */ color: oklch(69.4% 0.197 305.3);
Tailwind
colors: {
  custom: {
    50: '#d2a0fe',
    500: '#ba76fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba76fc;
$custom-light: #d2a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76fc",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 252
  },
  "hsl": {
    "h": 270.448,
    "s": 95.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69412,
    "c": 0.19652,
    "h": 305.3
  },
  "luminance": 0.30424
}

Semantic roles & 50–950 ramp

primary
#BA76FC
secondary
#E5F7D4
accent
#E60071
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA76FC

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

Preview Lab → · Contrast checker → · Palette generator →

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