#BA74EB#BA74EB

#BA74EB is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.2% C 0.180 H 309.6°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#BA74EB
RGBrgb(186, 116, 235)
HSLhsl(275, 75%, 69%)
HSVhsv(275, 51%, 92%)
CMYKcmyk(20.9%, 50.6%, 0%, 7.8%)
CIE-LABlab(60.72, 48.60, -49.67)
CIE-LCHlch(60.72, 69.49, 314.37°)
OKLaboklab(68.16% 0.1149 -0.139)
OKLCHoklch(68.16% 0.18 309.6)
XYZxyz(41.4876, 28.9287, 81.9794)
Luminance0.2893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74EB #A5EB74
analogous
#7F74EB #BA74EB #EB74E1
triadic
#BA74EB #EBBA74 #74EBBA
tetradic
#BA74EB #EB7F74 #A5EB74 #74E1EB
square
#BA74EB #EB7F74 #A5EB74 #74E1EB
split-complementary
#BA74EB #E1EB74 #74EB7F
monochromatic
#811DC8 #9F3EE3 #BA74EB #D5AAF3 #EFDFFA

Accessibility & contrast

On white

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

On black

6.79
#BA74EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74EB
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74EB#FFFFFF#000000##000000
##BA74EB1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#548FEF
Deuteranopia (green-blind)
#6994E8
Tritanopia (blue-blind)
#B488A5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba74eb;
/* rgb */ color: rgb(186, 116, 235);
/* oklch */ color: oklch(68.2% 0.180 309.6);
Tailwind
colors: {
  custom: {
    50: '#d19ef2',
    500: '#ba74eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba74eb;
$custom-light: #d19ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74eb",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 275.294,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.68161,
    "c": 0.18032,
    "h": 309.6
  },
  "luminance": 0.28928
}

Semantic roles & 50–950 ramp

primary
#BA74EB
secondary
#DAEFCC
accent
#D70F61
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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