#BA74EE#BA74EE

#BA74EE is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.3% C 0.184 H 308.8°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#BA74EE
RGBrgb(186, 116, 238)
HSLhsl(274, 78%, 69%)
HSVhsv(274, 51%, 93%)
CMYKcmyk(21.8%, 51.3%, 0%, 6.7%)
CIE-LABlab(60.87, 49.26, -51.09)
CIE-LCHlch(60.87, 70.97, 313.95°)
OKLaboklab(68.33% 0.1152 -0.1431)
OKLCHoklch(68.33% 0.184 308.8)
XYZxyz(41.9247, 29.1035, 84.2813)
Luminance0.2910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74EE #A8EE74
analogous
#7D74EE #BA74EE #EE74E5
triadic
#BA74EE #EEBA74 #74EEBA
tetradic
#BA74EE #EE7D74 #A8EE74 #74E5EE
square
#BA74EE #EE7D74 #A8EE74 #74E5EE
split-complementary
#BA74EE #E5EE74 #74EE7D
monochromatic
#8119CE #9F3DE7 #BA74EE #D5ABF5 #F0E1FB

Accessibility & contrast

On white

3.08
#BA74EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#BA74EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74EE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74EE#FFFFFF#000000##000000
##BA74EE1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5290F2
Deuteranopia (green-blind)
#6794EB
Tritanopia (blue-blind)
#B389A6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba74ee;
/* rgb */ color: rgb(186, 116, 238);
/* oklch */ color: oklch(68.3% 0.184 308.8);
Tailwind
colors: {
  custom: {
    50: '#d19ef4',
    500: '#ba74ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba74ee;
$custom-light: #d19ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74ee",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 238
  },
  "hsl": {
    "h": 274.426,
    "s": 78.205,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68325,
    "c": 0.1837,
    "h": 308.8
  },
  "luminance": 0.29103
}

Semantic roles & 50–950 ramp

primary
#BA74EE
secondary
#DCF0CD
accent
#DA0B63
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74EE

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

Preview Lab → · Contrast checker → · Palette generator →

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