#BA74EA#BA74EA

#BA74EA is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.1% C 0.179 H 309.8°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#BA74EA
RGBrgb(186, 116, 234)
HSLhsl(276, 74%, 69%)
HSVhsv(276, 50%, 92%)
CMYKcmyk(20.5%, 50.4%, 0%, 8.2%)
CIE-LABlab(60.67, 48.38, -49.20)
CIE-LCHlch(60.67, 69.00, 314.52°)
OKLaboklab(68.11% 0.1148 -0.1376)
OKLCHoklch(68.11% 0.179 309.8)
XYZxyz(41.3436, 28.8711, 81.2207)
Luminance0.2887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74EA #A4EA74
analogous
#7F74EA #BA74EA #EA74DF
triadic
#BA74EA #EABA74 #74EABA
tetradic
#BA74EA #EA7F74 #A4EA74 #74DFEA
square
#BA74EA #EA7F74 #A4EA74 #74DFEA
split-complementary
#BA74EA #DFEA74 #74EA7F
monochromatic
#811EC6 #A03FE2 #BA74EA #D4A9F2 #EFDEFA

Accessibility & contrast

On white

3.10
#BA74EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#BA74EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74EA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74EA#FFFFFF#000000##000000
##BA74EA1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#6A94E7
Tritanopia (blue-blind)
#B488A4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba74ea;
/* rgb */ color: rgb(186, 116, 234);
/* oklch */ color: oklch(68.1% 0.179 309.8);
Tailwind
colors: {
  custom: {
    50: '#d19ef1',
    500: '#ba74ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba74ea;
$custom-light: #d19ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74ea",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 234
  },
  "hsl": {
    "h": 275.593,
    "s": 73.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.68106,
    "c": 0.1792,
    "h": 309.8
  },
  "luminance": 0.2887
}

Semantic roles & 50–950 ramp

primary
#BA74EA
secondary
#DAEFCB
accent
#D61060
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74EA

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

Preview Lab → · Contrast checker → · Palette generator →

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