#BA74F9#BA74F9

#BA74F9 is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.9% C 0.196 H 306.2°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#BA74F9
RGBrgb(186, 116, 249)
HSLhsl(272, 92%, 72%)
HSVhsv(272, 53%, 98%)
CMYKcmyk(25.3%, 53.4%, 0%, 2.4%)
CIE-LABlab(61.46, 51.73, -56.25)
CIE-LCHlch(61.46, 76.42, 312.60°)
OKLaboklab(68.94% 0.1159 -0.1582)
OKLCHoklch(68.94% 0.196 306.2)
XYZxyz(43.5904, 29.7698, 93.0539)
Luminance0.2977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74F9 #B3F974
analogous
#7874F9 #BA74F9 #F974F5
triadic
#BA74F9 #F9BA74 #74F9BA
tetradic
#BA74F9 #F97874 #B3F974 #74F5F9
square
#BA74F9 #F97874 #B3F974 #74F5F9
split-complementary
#BA74F9 #F5F974 #74F978
monochromatic
#7F0AE9 #9D39F6 #BA74F9 #D7AFFC #F0E2FE

Accessibility & contrast

On white

3.02
#BA74F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#BA74F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74F9
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74F9#FFFFFF#000000##000000
##BA74F91.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4892FD
Deuteranopia (green-blind)
#5F95F6
Tritanopia (blue-blind)
#B08CAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba74f9;
/* rgb */ color: rgb(186, 116, 249);
/* oklch */ color: oklch(68.9% 0.196 306.2);
Tailwind
colors: {
  custom: {
    50: '#d29efc',
    500: '#ba74f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba74f9;
$custom-light: #d29efc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74f9",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 249
  },
  "hsl": {
    "h": 271.579,
    "s": 91.724,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68943,
    "c": 0.19611,
    "h": 306.2
  },
  "luminance": 0.29769
}

Semantic roles & 50–950 ramp

primary
#BA74F9
secondary
#E4F5D3
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA74F9

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

Preview Lab → · Contrast checker → · Palette generator →

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