#BA74FC#BA74FC

#BA74FC is a light, vivid violet. Relative luminance 0.300; OKLCH L 69.1% C 0.200 H 305.6°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#BA74FC
RGBrgb(186, 116, 252)
HSLhsl(271, 96%, 72%)
HSVhsv(271, 54%, 99%)
CMYKcmyk(26.2%, 54%, 0%, 1.2%)
CIE-LABlab(61.62, 52.41, -57.65)
CIE-LCHlch(61.62, 77.91, 312.28°)
OKLaboklab(69.12% 0.1161 -0.1623)
OKLCHoklch(69.12% 0.2 305.6)
XYZxyz(44.0620, 29.9585, 95.5379)
Luminance0.2996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74FC #B6FC74
analogous
#7674FC #BA74FC #FC74FA
triadic
#BA74FC #FCBA74 #74FCBA
tetradic
#BA74FC #FC7674 #B6FC74 #74FAFC
square
#BA74FC #FC7674 #B6FC74 #74FAFC
split-complementary
#BA74FC #FAFC74 #74FC76
monochromatic
#7E05F0 #9C38FB #BA74FC #D8B0FD #F0E1FE

Accessibility & contrast

On white

3.00
#BA74FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#BA74FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74FC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74FC#FFFFFF#000000##000000
##BA74FC1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba74fc;
/* rgb */ color: rgb(186, 116, 252);
/* oklch */ color: oklch(69.1% 0.200 305.6);
Tailwind
colors: {
  custom: {
    50: '#d29efe',
    500: '#ba74fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba74fc;
$custom-light: #d29efe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74fc",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 252
  },
  "hsl": {
    "h": 270.882,
    "s": 95.775,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69117,
    "c": 0.1995,
    "h": 305.6
  },
  "luminance": 0.29958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA74FC

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

Preview Lab → · Contrast checker → · Palette generator →

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