#BA74EC#BA74EC

#BA74EC is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.2% C 0.181 H 309.3°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#BA74EC
RGBrgb(186, 116, 236)
HSLhsl(275, 76%, 69%)
HSVhsv(275, 51%, 93%)
CMYKcmyk(21.2%, 50.8%, 0%, 7.5%)
CIE-LABlab(60.77, 48.82, -50.15)
CIE-LCHlch(60.77, 69.99, 314.23°)
OKLaboklab(68.22% 0.115 -0.1404)
OKLCHoklch(68.22% 0.181 309.3)
XYZxyz(41.6325, 28.9867, 82.7424)
Luminance0.2899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74EC #A6EC74
analogous
#7E74EC #BA74EC #EC74E2
triadic
#BA74EC #ECBA74 #74ECBA
tetradic
#BA74EC #EC7E74 #A6EC74 #74E2EC
square
#BA74EC #EC7E74 #A6EC74 #74E2EC
split-complementary
#BA74EC #E2EC74 #74EC7E
monochromatic
#811CCA #9F3EE5 #BA74EC #D5AAF3 #EFE0FB

Accessibility & contrast

On white

3.09
#BA74EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#BA74EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74EC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74EC#FFFFFF#000000##000000
##BA74EC1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FF0
Deuteranopia (green-blind)
#6894E9
Tritanopia (blue-blind)
#B388A5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba74ec;
/* rgb */ color: rgb(186, 116, 236);
/* oklch */ color: oklch(68.2% 0.181 309.3);
Tailwind
colors: {
  custom: {
    50: '#d19ef3',
    500: '#ba74ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba74ec;
$custom-light: #d19ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74ec",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 275,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.68215,
    "c": 0.18144,
    "h": 309.3
  },
  "luminance": 0.28986
}

Semantic roles & 50–950 ramp

primary
#BA74EC
secondary
#DBEFCC
accent
#D80D62
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74EC

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

Preview Lab → · Contrast checker → · Palette generator →

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