#BA74E7#BA74E7

#BA74E7 is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.9% C 0.176 H 310.6°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#BA74E7
RGBrgb(186, 116, 231)
HSLhsl(277, 71%, 68%)
HSVhsv(277, 50%, 91%)
CMYKcmyk(19.5%, 49.8%, 0%, 9.4%)
CIE-LABlab(60.52, 47.72, -47.77)
CIE-LCHlch(60.52, 67.52, 314.97°)
OKLaboklab(67.94% 0.1145 -0.1335)
OKLCHoklch(67.94% 0.176 310.6)
XYZxyz(40.9163, 28.7002, 78.9701)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74E7 #A1E774
analogous
#8074E7 #BA74E7 #E774DA
triadic
#BA74E7 #E7BA74 #74E7BA
tetradic
#BA74E7 #E78074 #A1E774 #74DAE7
square
#BA74E7 #E78074 #A1E774 #74DAE7
split-complementary
#BA74E7 #DAE774 #74E780
monochromatic
#8221C0 #A040DE #BA74E7 #D4A8F0 #EEDCF9

Accessibility & contrast

On white

3.12
#BA74E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#BA74E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74E7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74E7#FFFFFF#000000##000000
##BA74E71.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#578FEB
Deuteranopia (green-blind)
#6C93E4
Tritanopia (blue-blind)
#B587A3
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba74e7;
/* rgb */ color: rgb(186, 116, 231);
/* oklch */ color: oklch(67.9% 0.176 310.6);
Tailwind
colors: {
  custom: {
    50: '#d19eef',
    500: '#ba74e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba74e7;
$custom-light: #d19eef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74e7",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 231
  },
  "hsl": {
    "h": 276.522,
    "s": 70.552,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67945,
    "c": 0.17583,
    "h": 310.6
  },
  "luminance": 0.28699
}

Semantic roles & 50–950 ramp

primary
#BA74E7
secondary
#D8EDCA
accent
#D3135E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA74E7

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

Preview Lab → · Contrast checker → · Palette generator →

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