#BA76EF#BA76EF

#BA76EF is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.7% C 0.182 H 308.3°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA76EF
RGBrgb(186, 118, 239)
HSLhsl(274, 79%, 70%)
HSVhsv(274, 51%, 94%)
CMYKcmyk(22.2%, 50.6%, 0%, 6.3%)
CIE-LABlab(61.33, 48.43, -50.92)
CIE-LCHlch(61.33, 70.27, 313.56°)
OKLaboklab(68.68% 0.1126 -0.1426)
OKLCHoklch(68.68% 0.182 308.3)
XYZxyz(42.3051, 29.6285, 85.1349)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76EF #ABEF76
analogous
#7D76EF #BA76EF #EF76E8
triadic
#BA76EF #EFBA76 #76EFBA
tetradic
#BA76EF #EF7D76 #ABEF76 #76E8EF
square
#BA76EF #EF7D76 #ABEF76 #76E8EF
split-complementary
#BA76EF #E8EF76 #76EF7D
monochromatic
#8119D2 #9E3FE9 #BA76EF #D6ADF5 #F1E4FC

Accessibility & contrast

On white

3.03
#BA76EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#BA76EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA76EF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76EF#FFFFFF#000000##000000
##BA76EF1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F3
Deuteranopia (green-blind)
#6895EC
Tritanopia (blue-blind)
#B38BA8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba76ef;
/* rgb */ color: rgb(186, 118, 239);
/* oklch */ color: oklch(68.7% 0.182 308.3);
Tailwind
colors: {
  custom: {
    50: '#d19ff5',
    500: '#ba76ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba76ef;
$custom-light: #d19ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76ef",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 239
  },
  "hsl": {
    "h": 273.719,
    "s": 79.085,
    "l": 70
  },
  "oklch": {
    "l": 0.68682,
    "c": 0.18172,
    "h": 308.3
  },
  "luminance": 0.29628
}

Semantic roles & 50–950 ramp

primary
#BA76EF
secondary
#DEF1CF
accent
#DB0A66
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA76EF

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

Preview Lab → · Contrast checker → · Palette generator →

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