#BA74FA#BA74FA

#BA74FA is a light, vivid violet. Relative luminance 0.298; OKLCH L 69.0% C 0.197 H 306.0°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#BA74FA
RGBrgb(186, 116, 250)
HSLhsl(271, 93%, 72%)
HSVhsv(271, 54%, 98%)
CMYKcmyk(25.6%, 53.6%, 0%, 2%)
CIE-LABlab(61.51, 51.95, -56.72)
CIE-LCHlch(61.51, 76.92, 312.49°)
OKLaboklab(69% 0.116 -0.1596)
OKLCHoklch(69% 0.197 306)
XYZxyz(43.7468, 29.8324, 93.8775)
Luminance0.2983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74FA #B4FA74
analogous
#7774FA #BA74FA #FA74F7
triadic
#BA74FA #FABA74 #74FABA
tetradic
#BA74FA #FA7774 #B4FA74 #74F7FA
square
#BA74FA #FA7774 #B4FA74 #74F7FA
split-complementary
#BA74FA #F7FA74 #74FA77
monochromatic
#7F08EB #9D39F8 #BA74FA #D7AFFC #F0E1FE

Accessibility & contrast

On white

3.01
#BA74FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#BA74FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74FA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74FA#FFFFFF#000000##000000
##BA74FA1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4792FE
Deuteranopia (green-blind)
#5E95F7
Tritanopia (blue-blind)
#B08DAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba74fa;
/* rgb */ color: rgb(186, 116, 250);
/* oklch */ color: oklch(69.0% 0.197 306.0);
Tailwind
colors: {
  custom: {
    50: '#d29efc',
    500: '#ba74fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba74fa;
$custom-light: #d29efc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74fa",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 250
  },
  "hsl": {
    "h": 271.343,
    "s": 93.056,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69001,
    "c": 0.19725,
    "h": 306
  },
  "luminance": 0.29832
}

Semantic roles & 50–950 ramp

primary
#BA74FA
secondary
#E4F6D4
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F18
muted
#837E86

Preview Lab

Preview with #BA74FA

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

Preview Lab → · Contrast checker → · Palette generator →

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