#BA74FB#BA74FB

#BA74FB is a light, vivid violet. Relative luminance 0.299; OKLCH L 69.1% C 0.198 H 305.8°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#BA74FB
RGBrgb(186, 116, 251)
HSLhsl(271, 94%, 72%)
HSVhsv(271, 54%, 98%)
CMYKcmyk(25.9%, 53.8%, 0%, 1.6%)
CIE-LABlab(61.56, 52.18, -57.18)
CIE-LCHlch(61.56, 77.41, 312.38°)
OKLaboklab(69.06% 0.116 -0.1609)
OKLCHoklch(69.06% 0.198 305.8)
XYZxyz(43.9040, 29.8953, 94.7055)
Luminance0.2989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74FB #B5FB74
analogous
#7774FB #BA74FB #FB74F9
triadic
#BA74FB #FBBA74 #74FBBA
tetradic
#BA74FB #FB7774 #B5FB74 #74F9FB
square
#BA74FB #FB7774 #B5FB74 #74F9FB
split-complementary
#BA74FB #F9FB74 #74FB77
monochromatic
#7F07EE #9C39F9 #BA74FB #D8AFFD #F0E1FE

Accessibility & contrast

On white

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

On black

6.98
#BA74FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74FB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74FB#FFFFFF#000000##000000
##BA74FB1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4692FF
Deuteranopia (green-blind)
#5E95F8
Tritanopia (blue-blind)
#AF8DAD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba74fb;
/* rgb */ color: rgb(186, 116, 251);
/* oklch */ color: oklch(69.1% 0.198 305.8);
Tailwind
colors: {
  custom: {
    50: '#d29efd',
    500: '#ba74fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba74fb;
$custom-light: #d29efd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74fb",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 251
  },
  "hsl": {
    "h": 271.111,
    "s": 94.406,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69059,
    "c": 0.19838,
    "h": 305.8
  },
  "luminance": 0.29895
}

Semantic roles & 50–950 ramp

primary
#BA74FB
secondary
#E5F6D4
accent
#E6006F
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F18
muted
#837E86

Preview Lab

Preview with #BA74FB

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

Preview Lab → · Contrast checker → · Palette generator →

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